chore: improve misleading docstring

This commit is contained in:
Sagar Vora 2026-01-23 14:48:10 +05:30
parent 61bc172d95
commit 84359c8d49

View file

@ -136,8 +136,7 @@ def clean_script_and_style(html):
def sanitize_html(html, linkify=False, always_sanitize=False):
"""
Sanitize HTML tags, attributes and style to prevent XSS attacks
Based on nh3 clean (formerly bleach clean), bleach whitelist and html5lib's
Sanitizer defaults
Based on nh3 clean, bleach whitelist and html5lib's Sanitizer defaults
Does not sanitize JSON unless explicitly specified, as it could lead to future problems
"""