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 safe_list_sanitizer

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

Replace with any object that responds to +sanitize+.
Gets the Rails::Html::SafeListSanitizer instance used by sanitize and +sanitize_css+.
def safe_list_sanitizer
  @safe_list_sanitizer ||= sanitizer_vendor.safe_list_sanitizer.new
end

def sanitized_allowed_attributes

def sanitized_allowed_attributes
  sanitizer_vendor.safe_list_sanitizer.allowed_attributes
end

def sanitized_allowed_tags

def sanitized_allowed_tags
  sanitizer_vendor.safe_list_sanitizer.allowed_tags
end

def sanitizer_vendor

def sanitizer_vendor
  Rails::Html::Sanitizer
end