Remove lxml HTML parser as it was messing up emoji offset handling
This commit is contained in:
@@ -76,7 +76,6 @@ def matrix_to_telegram(html: str) -> ParsedMessage:
|
||||
if should_bridge_plaintext_highlights:
|
||||
html = plain_mention_regex.sub(plain_mention_to_html, html)
|
||||
|
||||
html = add_surrogates(html)
|
||||
text, entities = parse_html(add_surrogates(html))
|
||||
text = remove_surrogates(text.strip())
|
||||
text, entities = cut_long_message(text, entities)
|
||||
|
||||
Reference in New Issue
Block a user