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
Source
# File lib/rails/html/scrubbers.rb, line 196 def allowed_node?(node) !super end
Calls superclass method
Rails::HTML::PermitScrubber#allowed_node?
Source
# File lib/rails/html/scrubbers.rb, line 200 def scrub_attribute?(name) !super end
Calls superclass method
Rails::HTML::PermitScrubber#scrub_attribute?