Skip to content

Commit 5b7e228

Browse files
committed
Restore the removal of all backslashes from styles after decoding of unicode escapes
1 parent 88da8f9 commit 5b7e228

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lxml_html_clean/clean.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ def _has_sneaky_javascript(self, style):
618618
"""
619619
style = self._substitute_comments('', style)
620620
style = self._decode_css_unicode_escapes(style)
621+
style = style.replace('\\', '')
621622
style = _substitute_whitespace('', style)
622623
style = style.lower()
623624
if _has_javascript_scheme(style):

0 commit comments

Comments
 (0)