hashEmail hashEmail MODX Snippet Extra

hashEmail Guide

With this snippet you can encode any email address into its equivalent Unicode decimal entity.

This encoded email address will be read and translated back into its original, human readable form by the clients web browser. Converting your email address to Unicode will allow you to protect your email address from spam-bots that search the internet for email addresses.

This technique is not a foolproof solution! Any well established service with software such as Google's™ search engine can still read your email address regardless. However this technique will still certainly go a long way towards minimizing your exposure to less capable automated email harvesters.

That's all there is to it! Just view my page source that you see my email on to see it in action!

&email — string (req)
the email you wish to encode

Tip: This can also be used in a mailto link!

Which the browser outputs: example@dot.com