Last active
June 8, 2016 09:56
-
-
Save rcerrejon/285c51bf98ac9bf8e561c16e626b7372 to your computer and use it in GitHub Desktop.
Anti Spam Email
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("span.mailto").each(function(){ | |
var at = / at /; | |
var dot = / dot /g; | |
var addr = $(this).text().replace(at,"@").replace(dot,"."); | |
$(this).after('<a href="mailto:'+addr+'" title="E-Mail senden">'+ addr +"</a>"); | |
$(this).remove(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment