6 lines
177 B
Python
6 lines
177 B
Python
def telegram_html_escape(string: str):
|
|
return string.replace("<", "<") \
|
|
.replace(">", ">") \
|
|
.replace("&", "&") \
|
|
.replace('"', """)
|