mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-12-08 11:25:01 +00:00
iapi-viewer: correctly encode type text
This commit is contained in:
parent
b47424198c
commit
7f5866a309
@ -62,7 +62,7 @@ Ext.onReady(function() {
|
|||||||
metaData.style = 'white-space:normal;'
|
metaData.style = 'white-space:normal;'
|
||||||
|
|
||||||
if (pdef.typetext)
|
if (pdef.typetext)
|
||||||
return pdef.typetext;
|
return Ext.htmlEncode(pdef.typetext);
|
||||||
|
|
||||||
if (pdef['enum'])
|
if (pdef['enum'])
|
||||||
return pdef['enum'].join(' | ');
|
return pdef['enum'].join(' | ');
|
||||||
@ -71,7 +71,7 @@ Ext.onReady(function() {
|
|||||||
return pdef.format;
|
return pdef.format;
|
||||||
|
|
||||||
if (pdef.pattern)
|
if (pdef.pattern)
|
||||||
return pdef.pattern;
|
return Ext.htmlEncode(pdef.pattern);
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user