I got to thinking again (as I have before) about disguising email addresses on web pages, so that users can read and follow mailto: links easily, but evil robots can’t scrape your site and eventually spam you.
Using jQuery, this would appear to be pretty easy.
First, structure your links like so:
Basically, after the the page loads but before it renders, this function looks for all anchor tags of class=”email”. For each of them, it parses the rel attribute, replacing the slash with an at-sign. Then it changes the href to the correct mail link, and inserts the address inside the tag.
In my opinion, you’d need a fair bit of robot mojo to decode this.