Sha256: 1a85e7947bf76c7b8285a1756dafa7ae51c025fcdce6aa7767f37a4e87dda263

Contents?: true

Size: 295 Bytes

Versions: 33

Compression:

Stored size: 295 Bytes

Contents

module AmaLayout
  class NotificationScrubber < Rails::Html::PermitScrubber
    def initialize
      super
      self.tags = %w(i a div span strong br em h1 h2 h3 h4 h5 h6 blockquote)
      self.attributes = %w(href class id)
    end

    def skip_node?(node)
      node.text?
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
ama_layout-11.5.1 lib/ama_layout/notification_scrubber.rb
ama_layout-11.5.0 lib/ama_layout/notification_scrubber.rb
ama_layout-11.4.0 lib/ama_layout/notification_scrubber.rb
ama_layout-11.3.1 lib/ama_layout/notification_scrubber.rb
ama_layout-11.3.0 lib/ama_layout/notification_scrubber.rb
ama_layout-11.2.0 lib/ama_layout/notification_scrubber.rb
ama_layout-11.1.0 lib/ama_layout/notification_scrubber.rb
ama_layout-10.2.0 lib/ama_layout/notification_scrubber.rb
ama_layout-10.1.0 lib/ama_layout/notification_scrubber.rb
ama_layout-10.0.1 lib/ama_layout/notification_scrubber.rb
ama_layout-9.5.3 lib/ama_layout/notification_scrubber.rb
ama_layout-9.5.2 lib/ama_layout/notification_scrubber.rb
ama_layout-9.5.1 lib/ama_layout/notification_scrubber.rb
ama_layout-9.5.0 lib/ama_layout/notification_scrubber.rb
ama_layout-9.4.1 lib/ama_layout/notification_scrubber.rb
ama_layout-9.4.0 lib/ama_layout/notification_scrubber.rb
ama_layout-9.3.0 lib/ama_layout/notification_scrubber.rb
ama_layout-9.2.0 lib/ama_layout/notification_scrubber.rb
ama_layout-9.1.0 lib/ama_layout/notification_scrubber.rb
ama_layout-9.0.0 lib/ama_layout/notification_scrubber.rb