mirror of
https://git.proxmox.com/git/pmg-docs
synced 2025-08-14 04:48:26 +00:00
api-viewer: properly HTML encode properties
and fix missing closing </pre> tag Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
ddc224d888
commit
27173cd7e3
@ -198,12 +198,12 @@ Ext.onReady(function() {
|
||||
|
||||
var returnhtml;
|
||||
if (retinf.items) {
|
||||
returnhtml = '<pre>items: ' + JSON.stringify(retinf.items, null, 4) + '</pre>';
|
||||
returnhtml = '<pre>items: ' + Ext.htmlEncode(JSON.stringify(retinf.items, null, 4)) + '</pre>';
|
||||
}
|
||||
|
||||
if (retinf.properties) {
|
||||
returnhtml = returnhtml || '';
|
||||
returnhtml += '<pre>properties:' + JSON.stringify(retinf.properties, null, 4);
|
||||
returnhtml += '<pre>properties:' + Ext.htmlEncode(JSON.stringify(retinf.properties, null, 4)) + '</pre>';
|
||||
}
|
||||
|
||||
sections.push({
|
||||
|
Loading…
Reference in New Issue
Block a user