README.md in rails-html-sanitizer-1.0.3 vs README.md in rails-html-sanitizer-1.0.4

- old
+ new

@@ -97,19 +97,17 @@ You can also create custom scrubbers in your application if you want to. ```ruby class CommentScrubber < Rails::Html::PermitScrubber - def allowed_node?(node) - !%w(form script comment blockquote).include?(node.name) + def initialize + super + self.tags = %w( form script comment blockquote ) + self.attributes = %w( style ) end def skip_node?(node) node.text? - end - - def scrub_attribute?(name) - name == "style" end end ``` See `Rails::Html::PermitScrubber` documentation to learn more about which methods can be overridden.