aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/sanitize_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionview/lib/action_view/helpers/sanitize_helper.rb')
-rw-r--r--actionview/lib/action_view/helpers/sanitize_helper.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/actionview/lib/action_view/helpers/sanitize_helper.rb b/actionview/lib/action_view/helpers/sanitize_helper.rb
index 6c1be1ef4e..d4d3b0275d 100644
--- a/actionview/lib/action_view/helpers/sanitize_helper.rb
+++ b/actionview/lib/action_view/helpers/sanitize_helper.rb
@@ -137,10 +137,11 @@ module ActionView
define_method("#{meth_name}=") { |value| imp.("#{meth_name}=") }
end
- # A class to vendor out the full, link and white list sanitizers
- # Can be set to either HTML::Deprecated::Sanitizer or Rails::Html::Sanitizer
- mattr_accessor :sanitizer_vendor
- self.sanitizer_vendor = Rails::Html::Sanitizer
+ # Vendors the full, link and white list sanitizers.
+ # Strictly for backwards compatibility with html-scanner.
+ def sanitizer_vendor
+ Rails::Html::Sanitizer
+ end
def sanitized_allowed_tags
Rails::Html::WhiteListSanitizer.allowed_tags