]> git.proxmox.com Git - pve2-api-doc.git/commitdiff
correctly encode html characters inside descriptions
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 24 Jan 2012 06:06:32 +0000 (07:06 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 24 Jan 2012 06:06:32 +0000 (07:06 +0100)
data/PVEAPI.js

index 0ce315bddb88be9e7a77ef53d9ae7c814c963e5c..64586a46a70cfa097ba5d58cdbeeb5899e0f5c55 100644 (file)
@@ -53,7 +53,7 @@ Ext.onReady(function() {
 
        metaData.style = 'white-space:pre-wrap;'
 
-       return  value;
+       return Ext.htmlEncode(value);
     };
 
     var render_type = function(value, metaData, record) {
@@ -96,7 +96,7 @@ Ext.onReady(function() {
                var sections = [
                    {
                        title: 'Description',
-                       html: info.description,
+                       html: Ext.htmlEncode(info.description),
                        bodyPadding: 10
                    }
                ];