Commit 3f54be2a authored by Fred Drake's avatar Fred Drake

Minor simplification.

parent 87aae31c
...@@ -46,8 +46,7 @@ def unescape(data, entities={}): ...@@ -46,8 +46,7 @@ def unescape(data, entities={}):
if entities: if entities:
data = __dict_replace(data, entities) data = __dict_replace(data, entities)
# must do ampersand last # must do ampersand last
data = data.replace("&", "&") return data.replace("&", "&")
return data
def quoteattr(data, entities={}): def quoteattr(data, entities={}):
"""Escape and quote an attribute value. """Escape and quote an attribute value.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment