This class creates a mailto: links for the given email address using equivalent character entities that replace the characters of the URLs in the link URL attributes.
This is meant to prevent that e-mail harvesting robots used by spammers to collect e-mail addresses find the e-mail addresses when they are looking for mailto: or @ text, without compromising the ability of the browsers to determine the link URLs correctly. For instance, @ becomes @ .
Despite the class does not provide a solution against e-mail harvesting robots that are able to decode URLs like this, the class still provides a solution with no disadvantages for the reader, as no Javascript is needed, the mailto: link is still usable, and it can still be copied from the Web pages to be pasted anywhere else.
The class also provide optional support for specifying the mailto: link text, CSS class for rendering the link, and additional parameters for predefining the the mailto: link subject and body text. |