module ActionView::Helpers::SanitizeHelper::ClassMethods

def full_sanitizer


end
config.action_view.full_sanitizer = MySpecialSanitizer.new
class Application < Rails::Application

any object that responds to +sanitize+.
Gets the Rails::Html::FullSanitizer instance used by +strip_tags+. Replace with
def full_sanitizer
  @full_sanitizer ||= sanitizer_vendor.full_sanitizer.new
end

def link_sanitizer


end
config.action_view.link_sanitizer = MySpecialSanitizer.new
class Application < Rails::Application

Replace with any object that responds to +sanitize+.
Gets the Rails::Html::LinkSanitizer instance used by +strip_links+.
def link_sanitizer
  @link_sanitizer ||= sanitizer_vendor.link_sanitizer.new
end

def sanitized_allowed_attributes

def sanitized_allowed_attributes
  sanitizer_vendor.white_list_sanitizer.allowed_attributes
end

def sanitized_allowed_tags

def sanitized_allowed_tags
  sanitizer_vendor.white_list_sanitizer.allowed_tags
end

def sanitizer_vendor

Provided strictly for compabitility and can be removed in Rails 5.
Vendors the full, link and white list sanitizers.
def sanitizer_vendor
  Rails::Html::Sanitizer
end

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