keyboard_navigation helper output should be html safe

Change-Id: Iee9b4429f1936dbf4f61813b6a27535b96538c48
Reviewed-on: https://gerrit.instructure.com/4471
Reviewed-by: Brian Whitmer <brian@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
This commit is contained in:
Jacob Fugal 2011-06-29 11:35:47 -06:00
parent 9d96751a01
commit f2845374b8
1 changed files with 3 additions and 3 deletions

View File

@ -41,13 +41,13 @@ module ApplicationHelper
content = "<ul class='navigation_list' tabindex='-1'>\n"
keys.each do |hash|
content += " <li>\n"
content += " <span class='keycode'>#{hash[:key]}</span>\n"
content += " <span class='keycode'>#{h(hash[:key])}</span>\n"
content += " <span class='colon'>:</span>\n"
content += " <span class='description'>#{hash[:description]}</span>\n"
content += " <span class='description'>#{h(hash[:description])}</span>\n"
content += " </li>\n"
end
content += "</ul>"
content_for(:keyboard_navigation) { content }
content_for(:keyboard_navigation) { raw(content) }
end
def context_prefix(code)