[Zope] [python script] problem with AUTHENTICATED_USER

J Cameron Cooper zope-l at jcameroncooper.com
Wed Apr 20 13:01:09 EDT 2005


BonviciniJ at 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


More information about the Zope mailing list