diff --git a/pyrogram/client/style/html.py b/pyrogram/client/style/html.py index df7c64ff..1748fa58 100644 --- a/pyrogram/client/style/html.py +++ b/pyrogram/client/style/html.py @@ -116,10 +116,10 @@ class HTML: def parse(self, text: str): text = utils.add_surrogates(str(text or "").strip()) - text = "

{}

".format(text) parser = Parser(self.client) parser.feed(text) + parser.close() # TODO: OrderedDict to be removed in Python 3.6 return OrderedDict([