method

safe_list_sanitizer

Importance_1
v7.1.3.4 - Show latest stable - 0 notes - Class: ActionView::Helpers::SanitizeHelper::ClassMethods
safe_list_sanitizer() public

Gets the Rails::HTML::SafeListSanitizer instance used by sanitize and sanitize_css. Replace with any object that responds to sanitize.

class Application < Rails::Application
  config.action_view.safe_list_sanitizer = MySpecialSanitizer.new
end
Show source
Register or log in to add new notes.