Do you enjoy the classes and tutorials here at PHP-Ease? If so then you will love what we have done at BootPress - A Bootstrap CMS for Bloggers and Hackers et al.
This PHP function / jQuery plugin will create an obfuscated mailto link that will protect your email addresses from the spam bots that harvest the web. This is accomplished by:
This function will create an obfuscated mailto link that is only decoded when an actual user hovers over the link with their mouse and clicks on it.
|$text||The anchor text.|
|$to||The email address.|
|$subject||The email's subject.|
|$body||The email's body. This can include <br /> tags and newlines.|
|Returns||Your obfuscated email link.|