mirror of https://github.com/rancher/api-ui.git
Upadte to use htmlEncode
This commit is contained in:
parent
25216350f0
commit
dd0b5fdbc8
|
|
@ -98,7 +98,7 @@ JSONFormatter.prototype = {
|
||||||
dispValue = value.substr(this.options.baseUrl.length);
|
dispValue = value.substr(this.options.baseUrl.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
output += '<a class="valuelink" href="' + this.jsString(value) + '"><span class="string">"' + prefix + this.jsString(dispValue) + '"</span></a>';
|
output += '<a class="valuelink" href="' + this.htmlEncode(value) + '"><span class="string">"' + prefix + this.jsString(dispValue) + '"</span></a>';
|
||||||
} else {
|
} else {
|
||||||
output += '<span class="string">"' + this.jsString(value) + '"</span>';
|
output += '<span class="string">"' + this.jsString(value) + '"</span>';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue