Commit 6d890501 authored by Fred Drake's avatar Fred Drake

Minor simplification.

parent 9142b192
......@@ -46,8 +46,7 @@ def unescape(data, entities={}):
if entities:
data = __dict_replace(data, entities)
# must do ampersand last
data = data.replace("&", "&")
return data
return data.replace("&", "&")
def quoteattr(data, entities={}):
"""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