proper escape language name

parent 98c49426
...@@ -14,6 +14,6 @@ module RepositoryLanguagesHelper ...@@ -14,6 +14,6 @@ module RepositoryLanguagesHelper
class: "progress-bar has-tooltip", class: "progress-bar has-tooltip",
style: "width: #{lang.share}%; background-color:#{lang.color}", style: "width: #{lang.share}%; background-color:#{lang.color}",
data: { html: true }, data: { html: true },
title: "<span class=\"repository-language-bar-tooltip-language\">#{lang.name}</span>&nbsp;<span class=\"repository-language-bar-tooltip-share\">#{lang.share.round(1)}%</span>" title: "<span class=\"repository-language-bar-tooltip-language\">#{escape_javascript(lang.name)}</span>&nbsp;<span class=\"repository-language-bar-tooltip-share\">#{lang.share.round(1)}%</span>"
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment