typo
This commit is contained in:
parent
3c8dc2d2cc
commit
8d5e1e860d
1 changed files with 3 additions and 3 deletions
|
@ -123,18 +123,18 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type,
|
|||
tags: allowed_tags,
|
||||
attributes: allowed_attributes,
|
||||
scrubber: scrubber).strip.html_safe
|
||||
en,
|
||||
end
|
||||
|
||||
def sanitizer
|
||||
@sanitizer ||= Rails::Html::Sanitizer.safe_list_sanitizer.new
|
||||
end
|
||||
|
||||
def allowed_attributes
|
||||
@allowed_attributes ||= %w[style src alt controls data-align]
|
||||
@allowed_attributes ||= %w[style src alt controls data-align].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]
|
||||
@allowed_tags ||= %w[strong em del u mark p h1 h2 h3 h4 h5 h6 ul ol li img iframe audio video div].freeze
|
||||
end
|
||||
|
||||
# Decifra el valor
|
||||
|
|
Loading…
Reference in a new issue