Rails3: helper: use html_safe at render_properties(properties) of RepositoriesHelper
Contributed by Sylvain Utard. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7547 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4167a5cb0d
commit
bafa472d7e
|
@ -37,9 +37,9 @@ module RepositoriesHelper
|
|||
unless properties.nil? || properties.empty?
|
||||
content = ''
|
||||
properties.keys.sort.each do |property|
|
||||
content << content_tag('li', "<b>#{h property}</b>: <span>#{h properties[property]}</span>")
|
||||
content << content_tag('li', "<b>#{h property}</b>: <span>#{h properties[property]}</span>".html_safe)
|
||||
end
|
||||
content_tag('ul', content, :class => 'properties')
|
||||
content_tag('ul', content.html_safe, :class => 'properties')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue