9 Mar
2004
9 Mar
'04
12:13 a.m.
PieterB wrote:
On Mon, Mar 08, 2004 at 01:33:05PM +0400, Samir Mishra wrote:
What I need is - some_html_fn("this & that") -> "this & that" etc. but with more than just the "&" replacement.
What's wrong with the html_quote function? <dtml-var "'this & that'" html_quote> or from Products.PythonScripts.standard import html_quote print html_quote("this & that") But it doesn't replace åäöé etc.
Try http://utidylib.sourceforge.net (a Python wrapper for tidy).
Pieter
-- Peter Bengtsson, http://www.peterbe.com