Content last modified Monday 15 March 2010
hop to #bottom
Categories:
Author:
Current version:
0.4
About It:
Get it:
Rate it:
  • Helpful?
  • 3 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

yab_email

yab_email is a tiny plugin for obfuscating and defuscating email adresses to prevent harvesting email adresses.

This plugin will use jQuery and is based on the jQuery plugin Email Defuscator.

Download

yab_email_v0.4.txt

Plugin help

This plugin requires the jQuery Javascript-Framework is called in the site.

Tags

<txp:yab_email />

Obfuscate a given email address.

attribute default description
email name@example.com An email address, that will be obfuscated.
text not set Linktext for a created hyperlink.
at at Text between the created parantheses in the obfuscated email address.
set_js 1 Return the javascript for defuscating.
class yab-email-link Class for generated span.
link 1 If no attribute ‘text’ is given and link=“0” so a mailto link will not be generated. Output will be a <span>.
<txp:yab_email_javascript />

Defuscate the obfuscated email address.

If you don’t want do display the defuscating javascript — f.i. if you want to obfuscate/defuscate more than one email address or if you call the jquery.js at the bottom of your page — so you can supress the javascript output by the attribute set_js="0". And with the tag <txp:yab_email_javascript /> you can output the javascript on your own.

attribute default description
class yab-email-link Class for generated span. If you call <txp:yab_email_javascript />, be sure the class is same as used in <txp:yab_email />.
link 1 If no ‘text’ from <txp:yab_email /> is given and link=“0” so a mailto-link will not be generated. Output will be a <span>.

Changelog

  • 2009-09-20 v0.1
    • initial release
  • 2009-09-20 v0.2
    • bugfix: releated DOM load
  • 2009-09-20 v0.3
    • feature: added class attribute
    • bugfix: style in plugin help
  • 2009-09-21 v0.4
    • bugfix: fixed XHTML validation errors
    • feature: added new attribute link
Article Request Count:
Keywords/tags:
Initially released:
20 Sep 2009
Posted here:
20 Sep 2009
Article modified:
21 Sep 2009

If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
TxP · TxD · GG