Last Updated: February 25, 2016
·
3.719K
· filosottile

A simple self-contained "click to reveal" email antispam

Just drop this in place of your email, to get a nice well-behaving "click to reveal" instead of a ton of spam.

<span style="cursor: pointer" onclick="this.textContent = ('hello' + '@filippo' + String.fromCharCode(46) + 'io'); this.onclick = null; this.style.cursor='default'">click to reveal</span>

String.fromCharCode(46) is .

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside