From 8a50868f4546871d9ecf51fb2f82aa1299d1c457 Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Sun, 17 Feb 2019 19:14:53 +0100 Subject: [PATCH] Allow tables in translation content --- 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 2c17b50..bfbdff7 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 ) + acronym a img blockquote del ins table th tr td thead tbody tfoot ) self.attributes = %w( href src width height alt cite datetime title class name xml:lang abbr style ) end