Update util.py
This commit is contained in:
parent
ae20cb9f31
commit
4ed460b137
|
@ -401,7 +401,8 @@ def escape(text: str) -> str:
|
|||
chars = {"&": "&", "<": "<", ">": ">"}
|
||||
if text is None:
|
||||
return None
|
||||
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