From ccad448550d74cd5275a395ff2d7301000617c80 Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Sat, 9 Mar 2019 20:40:58 +0100 Subject: [PATCH] Allow some more HTML attributes --- app/scrubbers/translation_content_scrubber.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scrubbers/translation_content_scrubber.rb b/app/scrubbers/translation_content_scrubber.rb index bfbdff7..a085ec6 100644 --- a/app/scrubbers/translation_content_scrubber.rb +++ b/app/scrubbers/translation_content_scrubber.rb @@ -4,7 +4,8 @@ class TranslationContentScrubber < Rails::Html::PermitScrubber 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 ) - self.attributes = %w( href src width height alt cite datetime title class name xml:lang abbr style ) + self.attributes = %w( href src width height alt cite datetime title class name xml:lang abbr style + align border cellpadding cellspacing colspan ) end def skip_node?(node)