Search

A new XSLT utility, “E-mail Obfuscator” is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.

Nick, I think this line is wrong

<xsl:when test="text()='c'">x0063;</xsl:when>

Doesn’t it need to be

<xsl:when test="text()='c'">x0063</xsl:when>

Good spot. Either that, or c is correct and all the others need semi-colons?!

I haven’t tried it yet, will do shortly though ;)

Although looking at it now, you’re right… Save yourself some writing and apply

<xsl:text>;</xsl:text>

at the end. Although you knew that already lol.

Also, It’s very useful for obfuscating any string of text, not just emails!

Does this utility prevent a nasty spambot from harvesting the e-mail address?

I'm having problems with this utility.

In IE7 it outputs the encoded characters to the page. Any ideas how to prevent this?

Also, I've set the href to have mailto: at the beginning, but one of the browsers understand the encoded string and I always get an error when clicking the link.

How is best to use this utility then?

I haven't used it for three years, so you're on your own I'm afraid...

I have a modified version of this utility if you are interested. I don't know how efficient it is. It works as long as bots don't render JS I guess.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details