mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update util.py
This commit is contained in:
@ -401,8 +401,7 @@ def escape(text: str) -> str:
|
|||||||
chars = {"&": "&", "<": "<", ">": ">"}
|
chars = {"&": "&", "<": "<", ">": ">"}
|
||||||
if text is None:
|
if text is None:
|
||||||
return 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
|
return text
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user