From 161d11f0ec2db644e976e004da9c1cbf40c0a2b4 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 23 May 2024 06:15:22 +0300 Subject: [PATCH] do this https://watchpeopledie.tv/h/meta/post/61549/megathread-for-bugs-and-suggestions/3392870#context --- files/helpers/bleach_body.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/bleach_body.py b/files/helpers/bleach_body.py index 76c115038..b3bffbbce 100644 --- a/files/helpers/bleach_body.py +++ b/files/helpers/bleach_body.py @@ -8,7 +8,7 @@ from files.helpers.config.const import * allowed_tags = ('a','alpha','audio','b','big','blink','blockquote','br','center','code','del','details','em','g','gl','h1','h2','h3','h4','h5','h6','hr','i','img','li','lite-youtube','marquee','ol','p','pre','rp','rt','ruby','small','span','spoiler','strike','strong','sub','summary','sup','table','tbody','td','th','thead','tr','u','ul','video') allowed_tags_runtime = ('div', 'input', 'label', 'score', 'button', 'd') -allowed_css_properties = ('background-color', 'color', 'filter', 'font-weight', 'text-align', 'transform') +allowed_css_properties = ('background-color', 'color', 'filter', 'font-weight', 'text-align', 'transform', 'font-variant-caps') def allowed_attributes(tag, name, value): if name == 'style':