1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-12-22 19:44:21 +00:00
greed/utils.py
Stefano Pigozzi 6a49756394
Completely rework the configuration system (#76)
* Do a lot of progress on the new config system

* Completely rework the configuration system

* Improve logging messages
2020-09-07 17:11:22 +02:00

5 lines
177 B
Python

def telegram_html_escape(string: str):
return string.replace("<", "&lt;") \
.replace(">", "&gt;") \
.replace("&", "&amp;") \
.replace('"', "&quot;")