The test link: Email our sales department.
The code:
window.onload = function (){ var links = document.getElementsByTagName("a"); for (var i=0; i < links.length; i++){ if(links[i].href.indexOf("mailto:") !== -1){ links[i].href = links[i].href.split("?")[0].replace("notspam", ""); } } };
Other examples:
An explanation for this example can be found at https://pipwerks.com/2009/02/01/obfuscating-email-addresses-revisited/