diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-21 16:47:42 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-21 16:47:42 +0000 |
commit | ab1137159fb948a58a3d948e64aa5689e0d4e723 (patch) | |
tree | 5afc0d0bc35b6b3c4a176fa4573bf36a8d4dc009 /app/helpers | |
parent | 0d5df3a73e06ae6d2628c7e2b18d13f8d5fafd3e (diff) | |
download | redmine-ab1137159fb948a58a3d948e64aa5689e0d4e723.tar.gz redmine-ab1137159fb948a58a3d948e64aa5689e0d4e723.zip |
Rails3: helper: html_safe for WatchersHelper
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8309 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/watchers_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/watchers_helper.rb b/app/helpers/watchers_helper.rb index f734fb8ed..74bb0e1ec 100644 --- a/app/helpers/watchers_helper.rb +++ b/app/helpers/watchers_helper.rb @@ -59,8 +59,8 @@ module WatchersHelper :style => "vertical-align: middle", :class => "delete") end - "<li>#{ s }</li>" + content_tag :li, s.html_safe end - lis.empty? ? "" : "<ul>#{ lis.join("\n") }</ul>" + (lis.empty? ? "" : "<ul>#{ lis.join("\n") }</ul>").html_safe end end |