lib/parliament/utils/services/markdown_scrubber.rb in parliament-utils-0.8.4 vs lib/parliament/utils/services/markdown_scrubber.rb in parliament-utils-0.8.5
- old
+ new
@@ -3,11 +3,11 @@
module Services
class ParliamentMarkdownScrubber < Rails::Html::PermitScrubber
# Overrides default sanitization allowing Parliament tags and/or attributes
def initialize
super
- self.tags = %w(p div h1 h2 h3 h4 h5 h6 span a ol li ul strong em i itag strike del u sup sub blockquote cite table thead tbody tfoot tr th td iframe image pre code dl dt dd hr br)
- self.attributes = %w(class href src name title allowfullscreen seamless frameborder style)
+ self.tags = %w[p div h1 h2 h3 h4 h5 h6 span a ol li ul strong em i itag strike del u sup sub blockquote cite table thead tbody tfoot tr th td iframe image pre code dl dt dd hr br]
+ self.attributes = %w[class href src name title allowfullscreen seamless frameborder style]
end
def skip_node?(node)
node.text?
end