From 9afe69316e580094b06595122d595bfc1f06aae6 Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Sun, 29 Oct 2023 14:34:45 -0400 Subject: [PATCH] Allow height and width in attribute filtering Needed so the fix_emojos filter can add the width and height --- brutaldon/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brutaldon/settings.py b/brutaldon/settings.py index 8d0610d..c201001 100644 --- a/brutaldon/settings.py +++ b/brutaldon/settings.py @@ -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.