fix tg-emoji closing tag: use constant

This commit is contained in:
Suren Khorenyan 2024-11-24 17:40:47 +03:00
parent 141a550ab2
commit b40588b4c0

View file

@ -218,7 +218,7 @@ class HtmlDecoration(TextDecoration):
return html.escape(value, quote=False)
def custom_emoji(self, value: str, custom_emoji_id: str) -> str:
return f'<{self.EMOJI_TAG} emoji-id="{custom_emoji_id}">{value}</tg-emoji>'
return f'<{self.EMOJI_TAG} emoji-id="{custom_emoji_id}">{value}</{self.EMOJI_TAG}>'
def blockquote(self, value: str) -> str:
return f"<{self.BLOCKQUOTE_TAG}>{value}</{self.BLOCKQUOTE_TAG}>"