class Rails::HTML::TargetScrubber
If set, attributes included will be removed.attributes=
If set, elements included will be stripped.tags=
sanitization, Rails::HTML::TargetScrubber
targets them for removal.
Where Rails::HTML::PermitScrubber
picks out tags and attributes to permit in
=== Rails::HTML::TargetScrubber
def allowed_node?(node)
def allowed_node?(node) !super end
def scrub_attribute?(name)
def scrub_attribute?(name) !super end