From 2e2e41993803215d8f13117b727c32e995ebb812 Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Mon, 22 Feb 2021 15:24:28 +0100 Subject: [PATCH] Support underline in translations --- app/scrubbers/translation_content_scrubber.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scrubbers/translation_content_scrubber.rb b/app/scrubbers/translation_content_scrubber.rb index a085ec6..999e997 100644 --- a/app/scrubbers/translation_content_scrubber.rb +++ b/app/scrubbers/translation_content_scrubber.rb @@ -3,7 +3,7 @@ class TranslationContentScrubber < Rails::Html::PermitScrubber super self.tags = %w( strong em b i p code pre tt samp kbd var sub sup dfn cite big small address hr br div span h1 h2 h3 h4 h5 h6 ul ol li dl dt dd abbr - acronym a img blockquote del ins table th tr td thead tbody tfoot ) + acronym a img blockquote del ins table th tr td thead tbody tfoot u ) self.attributes = %w( href src width height alt cite datetime title class name xml:lang abbr style align border cellpadding cellspacing colspan ) end