diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2014-09-02 21:07:41 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2014-09-03 20:27:59 +0200 |
commit | 28eecd934b91618b1334acce859c26c1a380f51a (patch) | |
tree | 589226d6f13aab150b6ac70f5d763eeb94fc83e2 /actionview/lib/action_view/helpers | |
parent | a2f8377d1dd66c200a9a8d31db14f2b0a4bec744 (diff) | |
download | rails-28eecd934b91618b1334acce859c26c1a380f51a.tar.gz rails-28eecd934b91618b1334acce859c26c1a380f51a.tar.bz2 rails-28eecd934b91618b1334acce859c26c1a380f51a.zip |
Ship with rails-html-sanitizer instead.
Diffstat (limited to 'actionview/lib/action_view/helpers')
-rw-r--r-- | actionview/lib/action_view/helpers/sanitize_helper.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/actionview/lib/action_view/helpers/sanitize_helper.rb b/actionview/lib/action_view/helpers/sanitize_helper.rb index 394250f058..4f2db0a0c4 100644 --- a/actionview/lib/action_view/helpers/sanitize_helper.rb +++ b/actionview/lib/action_view/helpers/sanitize_helper.rb @@ -1,6 +1,6 @@ require 'active_support/core_ext/object/try' require 'active_support/deprecation' -require 'rails-deprecated_sanitizer' +require 'rails-html-sanitizer' module ActionView # = Action View Sanitize Helpers @@ -122,14 +122,9 @@ module ActionView attr_writer :full_sanitizer, :link_sanitizer, :white_list_sanitizer # Vendors the full, link and white list sanitizers. - # This uses html-scanner for the HTML sanitization. - # In the next Rails version this will use Rails::Html::Sanitizer instead. - # To get this new behavior now, in your Gemfile, add: - # - # gem 'rails-html-sanitizer' - # + # Provided strictly for compabitility and can be removed in Rails 5. def sanitizer_vendor - Rails::DeprecatedSanitizer + Rails::Html::Sanitizer end def sanitized_allowed_tags |