Files
BTCPay_Greed/utils.py
2023-03-31 22:08:00 +02:00

6 lines
177 B
Python

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