mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 12:36:21 +00:00
feat: no sanitizar tablas sutty/editor#7
This commit is contained in:
parent
3fd2e1edfc
commit
f6ea00ed30
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue