When displaying an e-mail address on a website you obviously want to obfuscate it to avoid it getting harvested by spammers. here is a way to acheive it using css.

Using CSS display:none

css:
p span.displaynone { display:none; }

HTML:
<p> viswanath.malepati@<span class="displaynone"> null </span> gmail.com </p>


See the below example where I used the above css: To understand what is happening, copy below emailID add paste it you any where and you will find it to be "viswanath.malepati@nullgmail.com" instead of "viswanath.malepati@gmail.com"

viswanath.malepati@nullgmail.com


Comments (0)