As most of you know, spam bots are constantly scanning the internet in order to find emails to spam. Of course, you don’t want to receive spam, but what if you need to display your email (or someone else) on your blog? Here is a quick tip to obfuscate email adresses on your blog.
This tip is pretty easy to use. Just use the antispambot() function anywhere in your theme templates:
<?php antispambot('firstname.lastname@example.org',1 ) ?>
But what if you need to type email adresses in WP editor? No problem, I have a shortcode for that! Just have a look on CatsWhoCode.com.
Credits: WordPress Codex