fix html escape

This commit is contained in:
2024-04-26 15:13:38 +08:00
parent a7d144f2ee
commit e915cd13de
+3 -2
View File
@@ -1,3 +1,4 @@
import html
from typing import Generator from typing import Generator
from aiohttp import ClientSession from aiohttp import ClientSession
@@ -183,8 +184,8 @@ class TGTweet(Tweet):
return message_raw_text.format( return message_raw_text.format(
url=self.url, url=self.url,
author_url=self.author_url, author_url=self.author_url,
author=self.author, author=html.escape(self.author),
text=self.text text=html.escape(self.text)
) )
@property @property