[issue27429] xml.sax.saxutils.escape doesn't escape multiple characters safely

Serhiy Storchaka report at bugs.python.org
Sun Jul 3 08:29:28 EDT 2016


Serhiy Storchaka added the comment:

The purpose of xml.sax.saxutils.escape() is escaping characters, that can't be used directly in XML: "&", "<", etc. Quotes are escaped in attributes. It shouldn't be used for replacing ";", because this character itself is used in escapes.

There is no a bug. If use this function correctly it works as expected.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27429>
_______________________________________


More information about the Python-bugs-list mailing list