[Zope] Quoting Text to valid HTML
    Peter Bengtsson 
    mail at peterbe.com
       
    Mon Mar  8 19:13:27 EST 2004
    
    
  
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
    
    
More information about the Zope
mailing list