From 27173cd7e3efd4b6d3c6401e24222a8e39fd84d6 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 17 Aug 2019 12:53:17 +0200 Subject: [PATCH] api-viewer: properly HTML encode properties and fix missing closing tag Signed-off-by: Thomas Lamprecht --- api-viewer/PMGAPI.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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({