in CSS, JavaScripting

Spam blocking with JavaScript and CSS

I got inspired by kari patila’s post where he uses CSS class to hide spam text using CSS and I wrote something my own by using JavaScript and content to write email address.

.email:after {
content: “”;

<a class=”email” xhref=”” mce_href=”” onclick=”window.location = ‘mailto:’+this.innerHTML+’'”>jp</a>

a bit ugly but i think it works.