{"library":"bleach","type":"library","category":null,"description":"Bleach is an allowed-list-based HTML sanitizing library for Python (current version 6.3.0) that escapes or strips markup and attributes based on a configurable safelist. It also provides functionality to safely linkify text, including setting `rel` attributes. Designed for sanitizing text from untrusted sources, Bleach is built upon html5lib, making it robust against malformed HTML fragments. Note that the project was deprecated in January 2023, citing upstream dependency `html5lib`'s lack of active maintenance, and is now in a minimum-maintenance mode, with new projects discouraged.","language":"python","status":"deprecated","version":"6.3.0","tags":["html","sanitization","security","xss","deprecated"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install bleach","imports":["import bleach","bleach.clean(...)","bleach.linkify(...)","from bleach.sanitizer import Cleaner"]},{"cmd":"pip install 'bleach[css]'","imports":[]}],"homepage":"https://bleach.readthedocs.io/","github":"https://github.com/mozilla/bleach","docs":null,"changelog":null,"pypi":"https://pypi.org/project/bleach/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.7,"avg_import_s":0.28,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/bleach/compatibility"}}