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
1 changed files with 1 additions and 1 deletions

View File

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