diff options
Diffstat (limited to 'js/table.js')
-rw-r--r-- | js/table.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/table.js b/js/table.js index b72ce11..1b20f20 100644 --- a/js/table.js +++ b/js/table.js @@ -245,8 +245,7 @@ SQL.Table.prototype.toXML = function() { } var c = this.getComment(); if (c) { - c = c.replace(/&/g, "&").replace(/>/g, ">").replace(/</g, "<"); - xml += "<comment>"+c+"</comment>\n"; + xml += "<comment>"+SQL.escape(c)+"</comment>\n"; } xml += "</table>\n"; return xml; |