Upadte to use htmlEncode

This commit is contained in:
Neil MacDougall 2024-01-12 11:37:30 +00:00
parent 25216350f0
commit dd0b5fdbc8
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ JSONFormatter.prototype = {
dispValue = value.substr(this.options.baseUrl.length);
}
output += '<a class="valuelink" href="' + this.jsString(value) + '"><span class="string">&quot;' + prefix + this.jsString(dispValue) + '&quot;</span></a>';
output += '<a class="valuelink" href="' + this.htmlEncode(value) + '"><span class="string">&quot;' + prefix + this.jsString(dispValue) + '&quot;</span></a>';
} else {
output += '<span class="string">&quot;' + this.jsString(value) + '&quot;</span>';
}