{"categories":[{"label":"HTML","url":"https://skillfed.io/packages/category/text-processing-markup-html"}],"enrichment":{"capability":"Cleans and sanitizes HTML by removing unwanted tags and attributes using a blocklist approach, extracted from lxml's original HTML cleaner module.","skillfed_tags":["html-sanitization","blocklist-based"],"use_cases":["Sanitize user-submitted HTML in a blog or comment system where moderate filtering suffices","Remove script tags and event handlers from HTML copied from untrusted web sources","Clean up HTML content for display in a non-security-critical web application","Strip formatting and styling from HTML while preserving structure for content migration"],"what_it_does":"lxml_html_clean is a standalone HTML sanitization library extracted from lxml's original cleaner module. It uses a blocklist-based approach to remove unwanted HTML tags and attributes from user-supplied or untrusted content. The package depends only on lxml and installs as a pure Python wheel.\n\nThe package explicitly warns that it is not suitable for security-sensitive environments. Its URL parsing relies on Python's urllib.parse, which does not validate inputs, and a maliciously crafted URL could bypass the allowed-hosts check. If you need robust HTML sanitization for high-security contexts, the maintainers recommend alternatives like nh3.","worth_installing":"Yes, if you need basic HTML sanitization in a non-security-critical context. The package is actively maintained, has low install friction, and carries a permissive license. However, do not use it for security-sensitive applications\u2014the maintainers explicitly recommend alternatives like nh3 for those cases. Verify that blocklist-based filtering meets your specific requirements."},"id":"lxml-html-clean","links":{"html":"https://skillfed.io/packages/lxml-html-clean","md":"https://skillfed.io/packages/lxml-html-clean.md","pypi":"https://pypi.org/project/lxml-html-clean/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-20","license_spdx":null,"license_treatment":"permissive","name":"lxml-html-clean","python_support":"unspecified","summary":"HTML cleaner from lxml project"},"popularity":{"monthly_downloads":20471755,"position":1036,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.4.5"}
