decoding XML-ified special chars such as "
Skip Montanaro
skip at pobox.com
Tue Jul 30 17:45:09 EDT 2002
chris> from xml.sax.saxutils import escape
chris> data = escape(orig_data)
That goes the wrong way. I think the OP wanted to go from '"' to '"',
not the other way around.
chris> ... you might get by using urllib.unquote(data)
That's for unquoting stuff that's been escape for inclusion into URLs, also
not what the OP asked for.
--
Skip Montanaro
skip at pobox.com
consulting: http://manatee.mojam.com/~skip/resume.html
More information about the Python-list
mailing list