{"library":"html-sanitizer","type":"library","category":null,"description":"This is an allowlist-based and very opinionated HTML sanitizer for Python, designed to clean up HTML fragments from untrusted or trusted sources. It's built upon `lxml` to ensure valid and safe HTML output. Beyond basic tag and attribute allowlisting, it applies additional transforms to normalize and simplify HTML content, aiming for consistency, especially from rich text editors. It's actively maintained.","language":"python","status":"active","version":"2.6.0","tags":["html","sanitizer","xss-protection","security","lxml"],"install":[{"cmd":"pip install html-sanitizer","imports":["from html_sanitizer import Sanitizer"]}],"homepage":null,"github":"https://github.com/matthiask/html-sanitizer","docs":null,"changelog":null,"pypi":"https://pypi.org/project/html-sanitizer/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":2.3,"avg_import_s":0.09,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/html-sanitizer/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":null}}