Tweak HTML sanitization and media proxy
This commit is contained in:
@@ -93,7 +93,7 @@ ALLOWED_TAGS = [
|
||||
|
||||
def clean_html(html):
|
||||
try:
|
||||
return bleach.clean(html, tags=ALLOWED_TAGS)
|
||||
return bleach.clean(html, tags=ALLOWED_TAGS, strip=True)
|
||||
except Exception:
|
||||
return ""
|
||||
|
||||
|
Reference in New Issue
Block a user