summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/sax/saxutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/xml/sax/saxutils.py b/Lib/xml/sax/saxutils.py
index 049e09c..035715c 100644
--- a/Lib/xml/sax/saxutils.py
+++ b/Lib/xml/sax/saxutils.py
@@ -43,10 +43,10 @@ def unescape(data, entities={}):
"""
data = data.replace("&lt;", "<")
data = data.replace("&gt;", ">")
- # must do ampersand last
- data = data.replace("&amp;", "&")
if entities:
data = __dict_replace(data, entities)
+ # must do ampersand last
+ data = data.replace("&amp;", "&")
return data
def quoteattr(data, entities={}):