pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/fedora-python/lxml_html_clean/commit/3bd8039878922e53dfe1fcf4207dd99dfec1644d

b.githubassets.com/assets/global-d18f184ea1a06a2c.css" /> [doc] Improve docs about CSS removal (#23) · fedora-python/lxml_html_clean@3bd8039 · GitHub
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

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy