mirror of https://github.com/zulip/zulip.git
html_diff: Really return str, not bytes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
80c0e60edc
commit
3e7503a607
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue