En Mon, 09 Mar 2009 13:32:48 -0200, Petr Muller <a...@afri.cz> escribió:

Is there some method provided in python standard library to sanitize
strings used as input to xml documents? (=remove form-feeds and whatever
else). I've searched docs and google, found only 4Suite project. I
cannot rely on something not in standard lib, so I'm wondering if I've
just overlooked something in the docs to this (imo) important task...

What do you mean by "sanitize strings used as input to xml documents"?
Do you have a string that you're going to parse as an XML document? Either it is valid XML, or not. I would not "sanitize" it, you risk changing the data inside.

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to