[python script] problem with AUTHENTICATED_USER
I have another problem (not in relation with AUTHENTICATED_USER): I would like to know if a special function exists to transform special char in html (like HTMLentities in PHP or escape in javascript)
[ BonviciniJ@keops.net wrote:]
I have another problem (not in relation with AUTHENTICATED_USER): I would like to know if a special function exists to transform special char in html (like HTMLentities in PHP or escape in javascript) _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
use this: from Products.PythonScripts.standard import html_quote html_quote('< & >') ... regards, Juergen Herrmann _______________________________________________________________________
XLhost.de - eXperts in Linux hosting <<
Juergen Herrmann Weiherweg 10, 93051 Regensburg, Germany Fon: +49 (0)700 XLHOSTDE [0700 95467833] Fax: +49 (0)721 151 463027 ICQ: 27139974 - IRC: #XLhost@quakenet WEB: http://www.XLhost.de
BonviciniJ@keops.net wrote:
I have another problem (not in relation with AUTHENTICATED_USER): I would like to know if a special function exists to transform special char in html (like HTMLentities in PHP or escape in javascript)
Your Zope online help will help you. For Python code, see the Products.PythonScripts.standard module, which includes html_quote() For DTML, see the docs on dtml-var. Specifically, the html_quote attribute. For ZPT, encoding is done automatically. You have to use structure keyword to stop it. --jcc
participants (3)
-
BonviciniJ@keops.net -
J Cameron Cooper -
Jürgen Herrmann