Skip to content

Commit

Permalink
Upadte to use htmlEncode
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmac committed Jan 12, 2024
1 parent 2521635 commit dd0b5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/JSONFormatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>';
}
Expand Down

0 comments on commit dd0b5fd

Please sign in to comment.