From 22d8f4add3250af636d1246480193342b396b998 Mon Sep 17 00:00:00 2001 From: Richard Hirner Date: Fri, 29 Oct 2010 16:10:05 +0200 Subject: [PATCH] removing tags doesn't make a string HTML safe [#5886 state:resolved] --- .../lib/action_view/helpers/sanitize_helper.rb | 2 +- 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 0fee34f..a08f5a0 100644 --- a/actionpack/lib/action_view/helpers/sanitize_helper.rb +++ b/actionpack/lib/action_view/helpers/sanitize_helper.rb @@ -81,7 +81,7 @@ module ActionView # strip_tags("
Welcome to my website!
") # # => 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. -- 1.7.2.2