Bugs item #1411695, was opened at 2006-01-21 15:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1411695&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XML Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Mark Sandler (msandler) Assigned to: Nobody/Anonymous (nobody) Summary: XML.sax.saxutils.escape -- always escapes <, >, &, Initial Comment: sax.saxutils.escape -- always escapes <, >, &, even if entities are provided. E.g. escape("<abcd>", {'a':'\a'}) would produce "<\abcd%rt;" instead of "<\abcd>" While it might be expected behaviour, the documentation states "You can escape other strings of data by passing a dictionary as the optional entities parameter. The keys and values must all be strings; each key will be replaced with its corresponding value. " and it is not at all obvious that entities specify _additional_ (to <, >, &) escape strings. It is also impossible to do custom escapes of <,>,& using saxutils.escape. (while custom escapes of < and > might be never necessary for XML, the escape function is general enough to be of interest in other circumstances). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1411695&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com