From 68cd260440c1860785f919a84bd2e3ec0869a335 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 24 Apr 2023 09:31:45 +0200 Subject: [PATCH] do this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3909706#context --- files/helpers/sanitize.py | 2 +- files/templates/formatting.html | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 5c24dcb898..c2ec46a6e8 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -49,7 +49,7 @@ TLDS = ( # Original gTLDs and ccTLDs 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') + 'marquee','a','span','ruby','rp','rt','spoiler','img','lite-youtube','video','audio','g','u') allowed_styles = ['color', 'background-color', 'font-weight', 'text-align'] diff --git a/files/templates/formatting.html b/files/templates/formatting.html index 5948e9d6db..430899b21e 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -547,6 +547,15 @@ line breaks example image + + Underlined Text + + <u>fart</u> + + + fart + +