module ActionView::Helpers::SanitizeHelper::ClassMethods
def white_list_sanitizer
end
config.action_view.white_list_sanitizer = MySpecialSanitizer.new
class Application < Rails::Application
Replace with any object that responds to +sanitize+.
Gets the Rails::Html::WhiteListSanitizer instance used by sanitize and +sanitize_css+.
def white_list_sanitizer @white_list_sanitizer ||= sanitizer_vendor.white_list_sanitizer.new end