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 .
Written by Filippo Valsorda
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Html
Authors
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
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#