Gabriel Genellina wrote: > Steven D'Aprano wrote: >> I have searched for, but been unable to find, standard library >> functions that escapes or unescapes URLs. Are there any such >> functions?
> Yes: cgi.escape/unescape, and xml.sax.saxutils.escape/unescape. I don't see a cgi.unescape in the standard library. I don't think xml.sax.saxutils.unescape will be suitable for Steven's purpose, because it doesn't process numeric character references (which are both legal and seen in the wild in /href/ attributes). -M- -- http://mail.python.org/mailman/listinfo/python-list