durusmail: quixote-users: html encode??? (special characters to entities)
html encode??? (special characters to entities)
2003-07-11
2003-07-11
2003-07-11
2003-07-11
2003-07-11
html encode??? (special characters to entities)
Oleg Broytmann
2003-07-11
On Fri, Jul 11, 2003 at 09:49:45AM +0200, Bud P. Bruegger wrote:
> I was looking for a routine that encodes special characters in a
> string (such as accented characters or German umlauts) to their
> corresponding HTML entities.  I expected to find it in a standard

   it is cgi.escape()

> python library or in quixote--but all I found was htmlentitydefs.

   or quixote.html.html_quote.

Oleg.
--
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.

reply