Created
July 12, 2014 10:02
-
-
Save mreq/9f77e69eb4e894c54e15 to your computer and use it in GitHub Desktop.
Protect emails
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
$ -> | |
$('.em').filter('[data-em]').each -> | |
t = $(this) | |
e = t.data('em').replace '/', '@' | |
t.attr('href', 'mailto:'+e).not('.custom-text').text e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment