proper escape language name
This commit is contained in:
		
							parent
							
								
									98c4942672
								
							
						
					
					
						commit
						2bda51f507
					
				|  | @ -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> <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> <span class=\"repository-language-bar-tooltip-share\">#{lang.share.round(1)}%</span>" | ||||
|   end | ||||
| end | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue