Convert xml symbol notation
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Sat Apr 7 16:43:10 EDT 2007
Martin v. Löwis wrote:
> >> 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
> >
> > Try the htmlentitydefs module.
>
> That won't help: this is a character reference, not an entity reference.
> htmlentitydefs only contains the definitions of entities.
Ouch! Sorry.
--
Gabriel Genellina
More information about the Python-list
mailing list