diff options
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index 0b04bd323f..0b1b46b0f3 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -254,7 +254,7 @@ module ActionView # html-scanner tokenizer and so its HTML parsing ability is limited by # that of html-scanner. def strip_tags(html) - return nil if html.blank? + return html if html.blank? if html.index("<") text = "" tokenizer = HTML::Tokenizer.new(html) |