lib/sanitize/config/relaxed.rb in sanitize-2.0.4 vs lib/sanitize/config/relaxed.rb in sanitize-2.0.5
- old
+ new
@@ -20,11 +20,11 @@
# SOFTWARE.
#++
class Sanitize
module Config
- RELAXED = {
+ RELAXED = freeze_config(
:elements => %w[
a abbr b bdo blockquote br caption cite code col colgroup dd del dfn dl
dt em figcaption figure h1 h2 h3 h4 h5 h6 hgroup i img ins kbd li mark
ol p pre q rp rt ruby s samp small strike strong sub sup table tbody td
tfoot th thead time tr u ul var wbr
@@ -54,8 +54,8 @@
'del' => {'cite' => ['http', 'https', :relative]},
'img' => {'src' => ['http', 'https', :relative]},
'ins' => {'cite' => ['http', 'https', :relative]},
'q' => {'cite' => ['http', 'https', :relative]}
}
- }
+ )
end
end