functions.py 209 B

123456789
  1. """General function"""
  2. def escape_text(text):
  3. """Escape text"""
  4. return text \
  5. .replace("_", "\\_") \
  6. .replace("*", "\\*") \
  7. .replace("[", "\\[") \
  8. .replace("`", "\\`")