From 54db1374efef6d0b2f32778e67dd261890a52d03 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 25 Jul 2023 22:00:53 +0300 Subject: [PATCH] do this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4583061#context --- files/helpers/sanitize.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 6d8f0918f..64389b18a 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -48,9 +48,12 @@ TLDS = ( # Original gTLDs and ccTLDs 'red','city','quest','works' ) -allowed_tags = ('b','blockquote','br','code','del','em','h1','h2','h3','h4','h5','h6','hr','i', - 'li','ol','p','pre','strong','sub','sup','table','tbody','th','thead','td','tr','ul', - 'marquee','a','span','ruby','rp','rt','spoiler','img','lite-youtube','video','audio','g','u','small') +allowed_tags = ( + 'b','blockquote','br','code','del','em','h1','h2','h3','h4','h5','h6','hr','i', + 'li','ol','p','pre','strong','sub','sup','table','tbody','th','thead','td','tr','ul', + 'marquee','a','span','ruby','rp','rt','spoiler','img','lite-youtube','video','audio','g','u','small', + 'strike','center', + ) allowed_styles = ['color', 'background-color', 'font-weight', 'text-align']