proper escape language name

This commit is contained in:
Johann Hubert Sonntagbauer 2018-10-03 17:50:15 +02:00
parent 98c4942672
commit 2bda51f507
1 changed files with 1 additions and 1 deletions

View File

@ -14,6 +14,6 @@ module RepositoryLanguagesHelper
class: "progress-bar has-tooltip",
style: "width: #{lang.share}%; background-color:#{lang.color}",
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