diff --git a/api-viewer/PMGAPI.js b/api-viewer/PMGAPI.js index e4504af..6488e3e 100644 --- a/api-viewer/PMGAPI.js +++ b/api-viewer/PMGAPI.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({