]> git.proxmox.com Git - pve-docs.git/blobdiff - api-viewer/PVEAPI.js
api-viewer: add missing </pre> closing tag
[pve-docs.git] / api-viewer / PVEAPI.js
index a167b4cdb6540b6c98bfdc9d7f16fc0b4c7ad985..b7c09166c8018be9956b1e595d230eeb868d5bed 100644 (file)
@@ -198,16 +198,17 @@ 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({
                        title: 'Returns: ' + rtype,
+                       bodyPadding: 10,
                        html: returnhtml
                    });
                }