Class: Rails::HTML::TargetScrubber
- Inherits:
-
PermitScrubber
- Object
- Loofah::Scrubber
- PermitScrubber
- Rails::HTML::TargetScrubber
- Defined in:
- lib/rails/html/scrubbers.rb
Overview
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.
Instance Attribute Summary
Attributes inherited from PermitScrubber
Instance Method Summary collapse
Methods inherited from PermitScrubber
Constructor Details
This class inherits a constructor from Rails::HTML::PermitScrubber
Instance Method Details
#allowed_node?(node) ⇒ Boolean
196 197 198 |
# File 'lib/rails/html/scrubbers.rb', line 196 def allowed_node?(node) !super end |
#scrub_attribute?(name) ⇒ Boolean
200 201 202 |
# File 'lib/rails/html/scrubbers.rb', line 200 def scrub_attribute?(name) !super end |