Allow height and width in attribute filtering

Needed so the fix_emojos filter can add the width and height
This commit is contained in:
Jason McBrayer 2023-10-29 14:34:45 -04:00
parent a45dbc13a0
commit 9afe69316e

View File

@ -195,7 +195,7 @@ SANITIZER_ALLOWED_TAGS = [
"span", "span",
"u", "u",
] ]
SANITIZER_ALLOWED_ATTRIBUTES = ["href", "src", "title", "alt", "class", "lang"] SANITIZER_ALLOWED_ATTRIBUTES = ["href", "src", "title", "alt", "class", "lang", "width", "height"]
# File upload settings. # File upload settings.
# Important: media will not work if you change this. # Important: media will not work if you change this.