From 7792f1c42df25f17aa9c5bd9eda069882ec00645 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 16 Jun 2023 00:18:07 +0300 Subject: [PATCH] =?UTF-8?q?allow=20text-center=20for=20(((=F0=9F=90=9F)))?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index b5aae36b6..ed652710c 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -93,7 +93,7 @@ def allowed_attributes(tag, name, value): if name == 'preload' and value == 'none': return True if tag == 'p': - if name == 'class' and value in {'mb-0','resizable'}: return True + if name == 'class' and value in {'mb-0','resizable','text-center'}: return True if tag == 'span': if name == 'data-bs-toggle' and value == 'tooltip': return True