Apache-AntiSpam-JavaScript

 view release on metacpan or  search on metacpan

JavaScript.pm  view on Meta::CPAN

   # in browser
   <script type="text/javascript">
     JSlt=unescape('%3C'); // "<"
     JSgt=unescape('%3E'); // ">"
     document.write(''+JSlt+'a h'+'ref='+'"mai'+'lto:'+'alex'+'@zei'+'tfor'+
                    'm.de'+'"'+JSgt+'al'+'ex@z'+'eitf'+'orm.'+'de'+JSlt+'/'+
                    'a'+JSgt+'');
   </script>

This module is Filter aware, meaning that it can work within
Apache::Filter framework without modification.

You may want to use other Apache::AntiSpam::* modules after this one.

This work is based on the Apache::AntiSpam::* modules provided by
Tatsuhiko Miyagawa E<lt>miyagawa@bulknews.netE<gt>.

=head1 AUTHOR

Alex Pleiner, E<lt>alex@zeitform.deE<gt>

README  view on Meta::CPAN

--------
Abstract
--------

Apache::AntiSpam::JavaScript is based on Apache::AntiSpam and implements 
a filter module to prevent e-mail addresses exposed as is on web pages. 
This module converts the anchors containing e-mail addresses (mailto:) 
to JavaScript code.

This module is Filter aware, meaning that it can work within
Apache::Filter framework without modification.

You may want to use other Apache::AntiSpam::* modules after this one.

This work is based on the Apache::AntiSpam::* modules provided by
Tatsuhiko Miyagawa <miyagawa@bulknews.net>. 

Example output:

   # in html-file
   <a href="mailto:alex@zeitform.de">alex@zeitform.de</a>



( run in 1.196 second using v1.01-cache-2.11-cpan-df04353d9ac )