For a mailto link, you could do something like this:

$(document).ready(function() {

  $('[EMAIL PROTECTED]').each(function() {
var mailto = $(this).attr('href').replace(/\/?sendme [-:]/,'mailto:').replace(/(\[|\()at(\]|\))/g,'@');
    $(this).attr('href', mailto);
  });

});

then, you can put the href in your html like this:
        "sendme-name(at)example.com"
or this:
        "sendme:name[at]example.com"

and jquery will transform it to this:
        "mailto:[EMAIL PROTECTED]"

--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On May 8, 2007, at 12:16 PM, [EMAIL PROTECTED] wrote:


Hi,

Is there any method to prevent spammers from catching e-mail addresses
on webpage links, other than the method described here:
http://15daysofjquery.com/safer-mailto-links/8/

I was looking for an option to hide e-mail text links, but also the e-
mail included in recipient form declarations.

Thank's on your possible help.


Reply via email to