Obfuscate Email

Obfuscator snippet for MODx Revolution

Output modifier for MODx to randomly encode 45% of the characters in decimal, 45% in hexadecimal and leaves the rest in plain text.

This is a port of the ObfuscateEmail plugin 0.9.1 by Aloysius Lim. It used to be a plugin called OnWebPagePrerender. For more flexibility, I changed it to a snippet which can be used as output modifier.

Snippet example usage

[[emailObfuscate?
  &input=`<a href="mailto:info@mydomain.com">info@mydomain.com</a>`
]]

Output modifier example

[[*content:emailObfuscate]]

Source code

gist