Convert mailto links to htmlentities

As a web developer we all know that sticking mailto: links on a site without any protection is a big no-no, because of spam harvesters.
Unfortunately from time to time you get clients that insist on this. I’ve noticed that some web developers insert the mailto: link by converting the whole link to htmlentities. I used to have a site bookmarked where you can insert the address and it will automatically give you the code to copy and paste into your site, but could for the life of me not find it the other day.
So I started Googling once again for something similar and came across this neat little function which you can insert in your own site and it will convert all email addresses where the function is called.
It’s available in PHP and ASP. Many thanks to the developer. You can get it here: Obfuscate Mailto.

In: On the Web

Tags: , , , , , ,

Leave a Reply