jsonTreeViewer
jsonTreeViewer copied to clipboard
Update rendering template to avoid potential XSS attack
Prior to this change, HTML found in the displayed JSON key or value would be rendered. This would allow for a XSS attack if the JSON contained malicious HTML.
The fix leverages textContent to ensure any HTML is properly escaped.