Remove workaround for sanitizer autolink
Fix merged upstream
This commit is contained in:
parent
9a1b91caa5
commit
1f04fa07cb
4
TODO.md
4
TODO.md
@ -38,3 +38,7 @@
|
||||
- On sync, check messages API, if a limited sync timeline was received
|
||||
|
||||
- Graphic bug when resizing window vertically for side pane?
|
||||
|
||||
- Verify E2E working
|
||||
|
||||
- Multiaccount aliases
|
||||
|
@ -27,13 +27,6 @@ class HtmlFilter(QObject):
|
||||
sanitizer.normalize_overall_whitespace = lambda html: html
|
||||
sanitizer.normalize_whitespace_in_text_or_tail = lambda el: el
|
||||
|
||||
# See FIXME note in sanitizer_settings
|
||||
autolink_func = sanitizer.lxml.html.clean.autolink
|
||||
sanitizer.lxml.html.clean.autolink = \
|
||||
lambda el, **kw: autolink_func(
|
||||
el, **self.sanitizer_settings["autolink"]
|
||||
)
|
||||
|
||||
# Prevent custom attributes from being removed
|
||||
sanitizer.lxml.html.clean.Cleaner.safe_attrs |= \
|
||||
self.sanitizer_settings["attributes"]["font"]
|
||||
|
Loading…
Reference in New Issue
Block a user