From f6ea00ed30822cb59bbf84574aff20f5cb2743d0 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 4 Nov 2022 16:47:55 -0300 Subject: [PATCH] feat: no sanitizar tablas sutty/editor#7 --- app/models/metadata_template.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/metadata_template.rb b/app/models/metadata_template.rb index 97a631c1..6a86d45a 100644 --- a/app/models/metadata_template.rb +++ b/app/models/metadata_template.rb @@ -198,12 +198,12 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type, def allowed_attributes @allowed_attributes ||= %w[style href src alt controls data-align data-multimedia data-multimedia-inner id - name rel target referrerpolicy class].freeze + name rel target referrerpolicy class colspan rowspan].freeze end def allowed_tags @allowed_tags ||= %w[strong em del u mark p h1 h2 h3 h4 h5 h6 ul ol li img iframe audio video div figure blockquote - figcaption a sub sup small].freeze + figcaption a sub sup small table thead tbody tfoot tr th td].freeze end # Decifra el valor