Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What's wrong with this?

    <a href="mailto:mail.added@by.js" />
        some
        <span style="display: none" />☃</span>
        person@gmail.com
    </a>
And here I can either click the link or copy the text and it isn't all messed up. A simple function can easily generate that HTML for any email string.


You're being downvoted with no explanation. The issue with that is that your email address is easily harvested by combing through websites. The comment above yours is describing a way to get around this by obfuscating the email address in HTML and using CSS trickery to get it to show normally.


How is it easily harvested in that case? Are you expecting bots to implement a full HTML & CSS parser?

The comment above will not allow you to copy and paste the email into a to input; might as well use an image.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: