Boris Borcic writes: > There is a function I can't seem to find in the > standard library. One that will turn XML/HTML > offending characters to corresponding entity- or > character references. is cgi.escape() what you're looking for?