code: function char2hex(ch) {
  		var hexDigits = '0123456789ABCDEF';
  		var dec = ch.charCodeAt(0);
  		return(hexDigits.charAt(dec>>4) + hexDigits.charAt(dec&15));
  	}
docs: Input: an email address, e.g. "foo@example.com"  Output: the email address as a mailto link, with each character of the address encoded as either a decimal or hex entity, in the hopes of foiling most address harvesting spam bots. E.g.:  <a href="&#x6D;&#97;&#105;&#108;&#x74;&#111;:&#102;&#111;&#111;&#64;&#101; x&#x61;&#109;&#x70;&#108;&#x65;&#x2E;&#99;&#111;&#109;">&#102;&#111;&#111; &#64;&#101;x&#x61;&#109;&#x70;&#108;&#x65;&#x2E;&#99;&#111;&#109;</a>  Based on a filter by Matthew Wickline, posted to the BBEdit-Talk mailing list: <http://tinyurl.com/yu7ue>  attacklab: why can't javascript speak hex?