mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Fix >
This commit is contained in:
parent
4028b44d07
commit
97dbedaa54
@ -320,7 +320,7 @@ def escape(text: str) -> str:
|
|||||||
:param text: the text to escape
|
:param text: the text to escape
|
||||||
:return: the escaped text
|
:return: the escaped text
|
||||||
"""
|
"""
|
||||||
chars = {"&": "&", "<": "<", ">": ">"}
|
chars = {"&": "&", "<": "<", ">": ">"}
|
||||||
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user