We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c9f1cb commit 317685cCopy full SHA for 317685c
pyrogram/parser/html.py
@@ -111,7 +111,7 @@ def __init__(self, client: Optional["pyrogram.Client"]):
111
112
async def parse(self, text: str):
113
# Strip whitespace characters from the end of the message, but preserve closing tags
114
- text = re.sub(r"\s*(</[\w]*>)\s*$", r"\1", text)
+ text = re.sub(r"\s*(</[\w</>]*>)\s*$", r"\1", text)
115
116
parser = Parser(self.client)
117
parser.feed(utils.add_surrogates(text))
0 commit comments