xss-utils provides utility functions to sanitize and escape content in Django and Mako templates, helping prevent cross-site scripting (XSS) attacks. Current version 1.0.0 supports Python 3.12, Django up to 5.2, and has dropped Python 3.11. The library is maintained by the Open edX project with regular updates.
pip install xss-utilsVerified import paths — ran on the pinned version, not inferred.
Sanitize HTML by escaping all HTML tags, preventing XSS injection.
Upgrade to Python 3.12 or later.
Use sanitize_html for full escaping of HTML content.
Update imports: from xss_utils.utils import sanitize_html
No dependency data recorded yet.