Description
Sanitize HTML in Python by allowing only approved tags, attributes, and protocols. It helps applications display user-provided markup while reducing the risk of script injection and unsafe content.
Sanitization rules must match the rendering context. Review allowed tags and URLs carefully before trusting cleaned HTML in web pages.