weaponplanner: fix title attribute escaping

main
Bryce Allen 10 years ago
parent 33f073cf93
commit 4362b0f7f7

@ -184,13 +184,15 @@
delta = {}; delta = {};
path = data[i]; path = data[i];
components = path["components"] components = path["components"]
path["path_string"] = ""; path_string = "";
for (j=0; j<path["path"].length; j++) { for (j=0; j<path["path"].length; j++) {
if (j != 0) { if (j != 0) {
path["path_string"] += " -> "; path_string += " -&gt; ";
} }
path["path_string"] += path["path"][j]["name"]; path_string += path["path"][j]["name"];
} }
path["path_string"] = path_string.replace(/"/g,
'&quot;');
path["all_components"] = all_components; path["all_components"] = all_components;
path["component_list"] = Object.keys(components); path["component_list"] = Object.keys(components);
if (i > 0) { if (i > 0) {

Loading…
Cancel
Save