So, the redeeming feature of your script might be your use of the @ :)
Well, I'm turning e-mail addresses to things like this:
<a
href="mailto:foo@example.com">foo (at) exam­ple.com</a>
and sometimes even mixing up with not only &#xxx entities but some %xx
URI-encoded chars, and the goddamn bots still get some of these :/
Anti-spam filter on the MX machine is a must.
--
Jan Brasna :: www.alphanumeric.cz | www.janbrasna.com | www.wdnews.net
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************