chore: improve misleading docstring
This commit is contained in:
parent
61bc172d95
commit
84359c8d49
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue