Convert xml symbol notation
"Martin v. Löwis"
martin at v.loewis.de
Sat Apr 7 04:47:50 EDT 2007
>> I'm working on a script to download and parse a web page, and it
>> includes xml symbol notation, such as ' for the ' character. Does
>> anyone know of a pre-existing python script/lib to convert the xml
>> notation back to the actual symbol it represents?
>
> Try the htmlentitydefs module.
That won't help: this is a character reference, not an entity reference.
htmlentitydefs only contains the definitions of entities.
Regards,
Martin
More information about the Python-list
mailing list