summaryrefslogtreecommitdiffstats
path: root/Lib/xmlcore/sax/saxutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/xmlcore/sax/saxutils.py')
-rw-r--r--Lib/xmlcore/sax/saxutils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/xmlcore/sax/saxutils.py b/Lib/xmlcore/sax/saxutils.py
index 582b008..a496519 100644
--- a/Lib/xmlcore/sax/saxutils.py
+++ b/Lib/xmlcore/sax/saxutils.py
@@ -68,6 +68,8 @@ def quoteattr(data, entities={}):
the optional entities parameter. The keys and values must all be
strings; each key will be replaced with its corresponding value.
"""
+ entities = entities.copy()
+ entities.update({'\n': '
', '\r': '
', '\t':'	'})
data = escape(data, entities)
if '"' in data:
if "'" in data: