diff options
Diffstat (limited to 'actionpack/lib/action_view')
-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 a777c64ecc..2040c52a71 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -152,7 +152,7 @@ module ActionView # Turns all links into words, like "<a href="something">else</a>" to "else". def strip_links(text) - text.gsub(/<a.*>(.*)<\/a>/m, '\1') + text.gsub(/<a\b.*?>(.*?)<\/a>/m, '\1') end # Try to require the html-scanner library |