Skip to content

Instantly share code, notes, and snippets.

Per Sjoholm taspts

  • Stockholm, Sweden
Block or report user

Report or block taspts

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@taspts
taspts / AntiSpamEM
Created Jun 2, 2015
Javascript Anti Spam Email
View AntiSpamEM
<!-- Hiding email address using a function to write in document (DOM) -->
<script type="text/javascript">
//<![CDATA[
function AntiSpamEM(domain, id, name) {
email='"mail' + 'to:' +id + '@' + domain.replace(/%23/g,".") + '"'
return '<a href=' + email + 'onmouseover=' + email + 'onfocus=' + email + '>' + name + '</a>' ;
};
//]]>
</script>
You can’t perform that action at this time.