class Rails::HTML::TargetScrubber

Rails::HTML::TargetScrubber

Where Rails::HTML::PermitScrubber picks out tags and attributes to permit in sanitization, Rails::HTML::TargetScrubber targets them for removal.

tags= If set, elements included will be stripped.

attributes= If set, attributes included will be removed.

Public Instance Methods

allowed_node?(node) click to toggle source
# File lib/rails/html/scrubbers.rb, line 172
def allowed_node?(node)
  !super
end
scrub_attribute?(name) click to toggle source
# File lib/rails/html/scrubbers.rb, line 176
def scrub_attribute?(name)
  !super
end