Created
March 13, 2014 22:56
-
-
Save jentanbernardus/9538925 to your computer and use it in GitHub Desktop.
JavaScript substitute email link - Fighting spam
This file contains 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
$(function(){ | |
// substitute email link | |
$('a.substitutedEmailLink').each(function(index, item){ | |
var linkContent = $(this).html(); | |
$(this).parent().html("<a href='mailto:"+despamitizeEAddress()+"'>"+linkContent+"</a>"); | |
}); | |
}); |
This file contains 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
<div id="contact-us"> | |
<a class="substitutedEmailLink">contact us</a> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment