htmlentities, htmlspecialchars

Robert Brewer fumanchu at
Tue Feb 24 17:16:42 CET 2004

Gandalf wrote:
> Hi all! I'm writting a web application using IIS and Python. I would
> like to have the Python equvalient of the PHP functions
> 'htmlentities'
> and 'htmlspecialchars'. E.g. to convert
>   a'   >>>>  aacute;
>   ő  >>>>    otilde;
> and the others. I looked for them in many libraries (urllib, htmllib,
> urlparse etc.) but I could only find the 'urlencode'
> function. I could
> not find anything on google  ('python htmlentities
> equvalent'). Please
> help me find it out. Thanks in advance. is used by htmllib. Try codepoint2name (new in 2.3).

Robert Brewer
Amor Ministries
fumanchu at 

More information about the Python-list mailing list