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.