Tweak HTML sanitization and media proxy

This commit is contained in:
Thomas Sileo
2019-08-18 15:36:59 +02:00
parent 77720b61af
commit 84a6d0c498
2 changed files with 8 additions and 2 deletions

View File

@@ -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 ""