This is a little ruby function I wrote for creating static HTML javascript mailto links. You can use this to protect almost any html content that you don’t want spiders or people without javascript support to see.
Encoding Your E-mail Address With Ruby and Javascript
Encoding your e-mail address with ruby and javascript