/ Published in: jQuery
Instead of writing the link in the HTML, just write the email address inside any tag you want (p, spam, div...) with the class "email", and put "[at]" instead "@". This script replace the "[at]" and create the link outside the spam robot sight
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$.each($('.email'), function(){ var mail = $(this).text(); mail = mail.replace('[at]','@'); $(this).html('<a href="mailto:' + mail + '>' + mail + '</a>'); });