Update util.py
This commit is contained in:
parent
669c18fdc0
commit
ae20cb9f31
|
@ -401,8 +401,7 @@ def escape(text: str) -> str:
|
|||
chars = {"&": "&", "<": "<", ">": ">"}
|
||||
if text is None:
|
||||
return None
|
||||
else:
|
||||
for old, new in chars.items(): text = text.replace(old, new)
|
||||
for old, new in chars.items(): text = text.replace(old, new)
|
||||
return text
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue