Minor simplification.
This commit is contained in:
parent
9142b19216
commit
6d8905012c
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue