Skip to content

Commit 3bd8039

Browse files
[doc] Improve docs about CSS removal (#23)
[doc] Improve docs about CSS removal and what happens if CSS are not removed entirely.
1 parent cb69916 commit 3bd8039

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/usage.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ which content is removed:
109109
</body>
110110
</html>
111111

112+
To control the removal of CSS styles, set the ``style`` and/or ``inline_style``
113+
keyword arguments to ``True`` when creating a ``Cleaner`` instance.
114+
If neither option is enabled, only ``@import`` rules are automatically removed
115+
from CSS content.
116+
112117
You can also whitelist some otherwise dangerous content with
113118
``Cleaner(host_whitelist=['www.youtube.com'])``, which would allow
114119
embedded media from YouTube, while still filtering out embedded media

0 commit comments

Comments
 (0)