From: Dietmar Maurer Date: Mon, 5 Sep 2016 07:03:35 +0000 (+0200) Subject: iapi-viewer: correctly encode type text X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=7f5866a309051fd3b06eb8ce2bb91688ebcf43d7 iapi-viewer: correctly encode type text --- diff --git a/api-viewer/PVEAPI.js b/api-viewer/PVEAPI.js index a27d6c4..75168e6 100644 --- a/api-viewer/PVEAPI.js +++ b/api-viewer/PVEAPI.js @@ -62,7 +62,7 @@ Ext.onReady(function() { metaData.style = 'white-space:normal;' if (pdef.typetext) - return pdef.typetext; + return Ext.htmlEncode(pdef.typetext); if (pdef['enum']) return pdef['enum'].join(' | '); @@ -71,7 +71,7 @@ Ext.onReady(function() { return pdef.format; if (pdef.pattern) - return pdef.pattern; + return Ext.htmlEncode(pdef.pattern); return ''; };