Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(jQuery) {
- jQuery.fn.emailSpamProtection = function(className) {
- return jQuery(this).find("." + className).each(function() {
- var jQuerythis = jQuery(this);
- var s = jQuerythis.text().replace(" [at] ", "@");
- jQuerythis.html("<a href=\"mailto:" + s + "\">" + s + "</a>");
- });
- };
- })(jQuery);
- jQuery("body").emailSpamProtection("email");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement