Phone number conversion. Separate prefix in brackets
1 answer
<span>
<small>
<xsl:value-of select="concat(substring-before(phone, ')'), ')')" />
</small>
<xsl:text> </xsl:text>
<xsl:value-of select="normalize-space(substring-after(phone, ')'))" />
</span>
The above will not work for phone numbers in any other format than the one you are showing. Add your own health check to make sure the phone number is in the expected format.
+2
a source to share