We all know why the usual mailto tags are not a desirable thing in these days... think of spam robots.

It would make a nice feature to encode email addresses, like the email-guardian did (although I haven't used it since development of it stopped at around drupal 4.3), with a javascript function that is not yet taken over by spammers. E.g. like this "Enkoder" from automaticlabs.

CommentFileSizeAuthor
#1 bbcode_encode_mail.patch6.26 KBLacKac

Comments

LacKac’s picture

Assigned: Unassigned » LacKac
StatusFileSize
new6.26 KB

I've implemented javascript encoding of email addresses, the same which is in smarty. It's not an ultimate solution against spam robots, but still better than just plain mailtos.
I've made the patch for the modified bbcode version which works with Drupal HEAD, but it should work with bbcode 4.4 too.

LacKac’s picture

patch commited to cvs. It encodes now all types of email address inputs which are recognized by bbcode.module.
Also removed a small bug. (outputting an extra </a> after the mailto link)