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
Calls superclass method
Rails::Html::PermitScrubber#allowed_node?
# File lib/rails/html/scrubbers.rb, line 171 def allowed_node?(node) !super end
scrub_attribute?(name)
click to toggle source
Calls superclass method
Rails::Html::PermitScrubber#scrub_attribute?
# File lib/rails/html/scrubbers.rb, line 175 def scrub_attribute?(name) !super end