summaryrefslogtreecommitdiffstats
path: root/js/table.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/table.js')
-rw-r--r--js/table.js3
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, "&amp;").replace(/>/g, "&gt;").replace(/</g, "&lt;");
- xml += "<comment>"+c+"</comment>\n";
+ xml += "<comment>"+SQL.escape(c)+"</comment>\n";
}
xml += "</table>\n";
return xml;