Remove lxml HTML parser as it was messing up emoji offset handling

This commit is contained in:
Tulir Asokan
2019-03-01 23:45:30 +02:00
parent f5ac584ed5
commit 8ef337f40b
4 changed files with 58 additions and 86 deletions
@@ -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)