Hello,
I have a bit of a paradox here. I'm trying to get my xslt template to output mailto links in encoded format (to stop spambots). This is how I've tried it:
<xsl:template match="emailwebmaster">
<a><xsl:attribute name="href">mailto:<xsl:text disable-output-escaping="yes">&#119;&#101;&#98;&#109;(etc)</xsl:text></xsl:attribute>
<xsl:text disable-output-escaping="yes">&#119;&#101;&#98;&#109;(etc)</xsl:text></a>
</xsl:template>
And strangely enough, the link text (between the <a> tags) works ok (looks like webm and so on) but the text in the href attribute still has the & instead of just an ampersand.
I've tried encoding the 'mailto:' text as well with the same result.
Does anyone know why this is working in one place and not another?
C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
I have a bit of a paradox here. I'm trying to get my xslt template to output mailto links in encoded format (to stop spambots). This is how I've tried it:
<xsl:template match="emailwebmaster">
<a><xsl:attribute name="href">mailto:<xsl:text disable-output-escaping="yes">&#119;&#101;&#98;&#109;(etc)</xsl:text></xsl:attribute>
<xsl:text disable-output-escaping="yes">&#119;&#101;&#98;&#109;(etc)</xsl:text></a>
</xsl:template>
And strangely enough, the link text (between the <a> tags) works ok (looks like webm and so on) but the text in the href attribute still has the & instead of just an ampersand.
I've tried encoding the 'mailto:' text as well with the same result.
Does anyone know why this is working in one place and not another?
C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!