mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
html_diff: Remove unused highlight_with_class function.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
89277e84df
commit
4b83003b3e
@@ -4,10 +4,6 @@ import lxml
|
||||
from lxml.html.diff import htmldiff
|
||||
|
||||
|
||||
def highlight_with_class(text: str, klass: str) -> str:
|
||||
return f'<span class="{klass}">{text}</span>'
|
||||
|
||||
|
||||
def highlight_html_differences(s1: str, s2: str, msg_id: Optional[int] = None) -> str:
|
||||
retval = htmldiff(s1, s2)
|
||||
fragment = lxml.html.fromstring(retval)
|
||||
|
||||
Reference in New Issue
Block a user