mirror of
https://github.com/redmine/redmine.git
synced 2026-03-04 03:21:24 +01:00
Rails3: helper: html_safe for render_flash_messages method at ApplicationHelper
Contributed by Sylvain Utard. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8121 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -214,7 +214,7 @@ module ApplicationHelper
|
||||
def render_flash_messages
|
||||
s = ''
|
||||
flash.each do |k,v|
|
||||
s << content_tag('div', v, :class => "flash #{k}")
|
||||
s << (content_tag('div', v.html_safe, :class => "flash #{k}"))
|
||||
end
|
||||
s.html_safe
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user