mirror of
git://git.proxmox.com/git/pve-docs.git
synced 2025-03-19 18:50:06 +03: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;'
|
||||
|
||||
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 '';
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user