mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-06-14 13:01:54 +00:00
api-viewer: correctly escape html when displaying return types.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
fd880d44c7
commit
0c83a706e6
@ -198,12 +198,12 @@ Ext.onReady(function() {
|
|||||||
|
|
||||||
var returnhtml;
|
var returnhtml;
|
||||||
if (retinf.items) {
|
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) {
|
if (retinf.properties) {
|
||||||
returnhtml = returnhtml || '';
|
returnhtml = returnhtml || '';
|
||||||
returnhtml += '<pre>properties:' + JSON.stringify(retinf.properties, null, 4);
|
returnhtml += '<pre>properties:' + Ext.htmlEncode(JSON.stringify(retinf.properties, null, 4));
|
||||||
}
|
}
|
||||||
|
|
||||||
sections.push({
|
sections.push({
|
||||||
|
Loading…
Reference in New Issue
Block a user