We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c157445 commit 16ce81dCopy full SHA for 16ce81d
readability/cleaners.py
@@ -1,6 +1,9 @@
1
# strip out a set of nuisance html attributes that can mess up rendering in RSS feeds
2
import re
3
-from lxml.html.clean import Cleaner
+try:
4
+ from lxml.html.clean import Cleaner
5
+except ImportError:
6
+ from lxml_html_clean import Cleaner
7
8
bad_attrs = ["width", "height", "style", "[-a-z]*color", "background[-a-z]*", "on*"]
9
single_quoted = "'[^']+'"
0 commit comments