Hi,

Attached, please find an extension that helps to obfuscate e-mail
addresses in HTML.

Use it as follows:

:email:`Name Surname <[email protected]>` -> renders as "Name Surname"
with the appropriate mailto link
:email:`[email protected]` -> renders as "[email protected]" with the
appropriate mailto link

I make use of

http://pypi.python.org/pypi/bud.nospam

that encodes the e-mail address using ROT13 and generates a javascript
snippet such as:

  <p><script type="text/javascript">document.write(
              "<n uers=\"znvygb:fgrsna\100fha\056np\056mn\">Fgrsna ina
qre Jnyg <\057n>".replace(/[a-zA-Z]/g,
              function(c){
                return String.fromCharCode(
                (c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);}));
                </script></p>

Good luck spambots :-)

Enjoy!
Stéfan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment: hide_email.py
Description: Binary data

Reply via email to