unescape HTML entities

Rares Vernica rvernica at gmail.com
Sat Oct 28 21:18:04 CEST 2006


Hi,

How can I unescape HTML entities like " "?

I know about xml.sax.saxutils.unescape() but it only deals with "&", 
"<", and ">".

Also, I know about htmlentitydefs.entitydefs, but not only this 
dictionary is the opposite of what I need, it does not have " ".

It has to be in python 2.4.

Thanks a lot,
Ray




More information about the Python-list mailing list