aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/sanitize_helper.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-08-09 18:15:59 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2012-08-09 18:15:59 -0300
commit7987e7419a75b5677841c4f215791a73083a154a (patch)
tree7164002ad5b52dd5a52114cfd9a4a2f7c5fc7049 /actionpack/lib/action_view/helpers/sanitize_helper.rb
parent0f9a6a7c80a2beeaace875d8a9d89a164811d729 (diff)
parent64146cf7babe35fd962576b699fa0deb4cfe0d70 (diff)
downloadrails-7987e7419a75b5677841c4f215791a73083a154a.tar.gz
rails-7987e7419a75b5677841c4f215791a73083a154a.tar.bz2
rails-7987e7419a75b5677841c4f215791a73083a154a.zip
Merge branch '3-2-8' into 3-2-stable
Diffstat (limited to 'actionpack/lib/action_view/helpers/sanitize_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/sanitize_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/sanitize_helper.rb b/actionpack/lib/action_view/helpers/sanitize_helper.rb
index 7768c8c151..0f6a5ed405 100644
--- a/actionpack/lib/action_view/helpers/sanitize_helper.rb
+++ b/actionpack/lib/action_view/helpers/sanitize_helper.rb
@@ -80,7 +80,7 @@ module ActionView
# strip_tags("<div id='top-bar'>Welcome to my website!</div>")
# # => Welcome to my website!
def strip_tags(html)
- self.class.full_sanitizer.sanitize(html).try(:html_safe)
+ self.class.full_sanitizer.sanitize(html)
end
# Strips all link tags from +text+ leaving just the link text.