We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2a651a commit 5dd3a66Copy full SHA for 5dd3a66
telegram/message.py
@@ -650,7 +650,7 @@ def text_html(self):
650
markdown_text += escape_html(message_text[last_offset:entity.offset]) + insert
651
last_offset = entity.offset + entity.length
652
653
- markdown_text += message_text[last_offset:]
+ markdown_text += escape_html(message_text[last_offset:])
654
return markdown_text
655
656
@property
@@ -689,5 +689,5 @@ def text_markdown(self):
689
markdown_text += escape_markdown(message_text[last_offset:entity.offset]) + insert
690
691
692
+ markdown_text += escape_markdown(message_text[last_offset:])
693
0 commit comments