Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
html_diff: Really return str, not bytes.
Anders Kaseorg3e7503a60721
diff --git a/zerver/lib/html_diff.py b/zerver/lib/html_diff.pyindex cc8d4fad6c8..ea2e37d65cd 100644--- a/zerver/lib/html_diff.py+++ b/zerver/lib/html_diff.py@@ -19,6 +19,6 @@ def highlight_html_differences(s1: str, s2: str, msg_id: Optional[int]=None) ->elem.tag = 'span'elem.set('class', 'highlight_text_inserted')- retval = lxml.html.tostring(fragment)+ retval = lxml.html.tostring(fragment, encoding="unicode")return retval