5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 04:34:16 +00:00

feat: no sanitizar tablas sutty/editor#7

This commit is contained in:
f 2022-11-04 16:47:55 -03:00
parent 3fd2e1edfc
commit f6ea00ed30

View file

@ -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