lib/string_tools.rb in string_tools-1.1.0 vs lib/string_tools.rb in string_tools-1.2.0
- old
+ new
@@ -179,10 +179,14 @@
Sanitize.fragment(
str,
:attributes => attributes,
:elements => elements,
- :css => {:properties => Sanitize::Config::RELAXED[:css][:properties], protocols: protocols},
+ :css => {
+ at_rules_with_styles: ['media'],
+ properties: Sanitize::Config::RELAXED[:css][:properties],
+ protocols: protocols,
+ },
:remove_contents => remove_contents || Set['style', 'script'],
:allow_comments => false,
:transformers => transformers
)
end