While working on a page for a friend, I thought of a silly way to obfuscate e-mail addresses from simple text spiders that crawl for new spam targets. The following little regex hack in JavaScript strips out any superfluous characters. It also finds any "span.companyemail" elements on the page and sticks a mailto link into the blank space.
$(document).ready(function() { var e = "inA0fo@YQspAa91ba1Zll#ka^dd*0y._Q1Xc4om".replace(/[^\.@a-z]/g, ""); $("span.companyemail").each(function() { $(this).html('' + e + ''); }); });