Class: Loofah::Helpers::ActionView::FullSanitizer
- Inherits:
-
Object
- Object
- Loofah::Helpers::ActionView::FullSanitizer
- Defined in:
- lib/loofah/helpers.rb
Overview
Replacement class for Rails’s HTML::FullSanitizer.
To use by default, call this in an application initializer:
ActionView::Helpers::SanitizeHelper.full_sanitizer = \
Loofah::Helpers::ActionView::FullSanitizer.new
Or, to generally opt-in to Loofah's view sanitizers:
Loofah::Helpers::ActionView.set_as_default_sanitizer