X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=api-viewer%2FPVEAPI.js;h=b7c09166c8018be9956b1e595d230eeb868d5bed;hb=82f71eea81b5b1976560577bb743b667a2402afe;hp=835322fd094f76bfe630b1543e0a7ba51f54fb9b;hpb=ba295265e6e2acfc92f6d50c5270beb7cdf4ccc2;p=pve-docs.git diff --git a/api-viewer/PVEAPI.js b/api-viewer/PVEAPI.js index 835322f..b7c0916 100644 --- a/api-viewer/PVEAPI.js +++ b/api-viewer/PVEAPI.js @@ -198,12 +198,12 @@ Ext.onReady(function() { var returnhtml; if (retinf.items) { - returnhtml = '
items: ' + JSON.stringify(retinf.items, null, 4) + '
'; + returnhtml = '
items: ' + Ext.htmlEncode(JSON.stringify(retinf.items, null, 4)) + '
'; } if (retinf.properties) { returnhtml = returnhtml || ''; - returnhtml += '
properties:' + JSON.stringify(retinf.properties, null, 4);
+			returnhtml += '
properties:' + Ext.htmlEncode(JSON.stringify(retinf.properties, null, 4)) + '
'; } sections.push({