Hello all, This ought to be simple, but can't find module/function to do this. I'm writing an external method that reads text for inclusion into HTML. Some of the strings have "&" (= &) and other non-HTML conformant characters. I know Zope takes care of this translation automatically, but is there something outside Zope I could use? TIA. Samir.
Samir Mishra wrote at 2004-3-8 10:31 +0400:
This ought to be simple, but can't find module/function to do this. I'm writing an external method that reads text for inclusion into HTML. Some of the strings have "&" (= &) and other non-HTML conformant characters. I know Zope takes care of this translation automatically, but is there something outside Zope I could use?
You can use "html_quote" from "Products.PythonScripts.standard". -- Dieter
participants (2)
-
Dieter Maurer -
Samir Mishra