mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
This adds a try-except block when running html2text when processing raw
messages from HTML to markdown.
convert_html_to_text is added mainly for testing convinience. We don't
have any sample of Mattermosts' problematic content that could trigger
this sort of error yet, so the test mocks convert_html_to_text to raise
error instead.
(cherry picked from commit 201a71b575)