xml escaping, fixes #207

This commit is contained in:
Ondrej Zara
2015-08-04 16:36:30 +02:00
parent a8f650f5c1
commit 921ccb4b21
3 changed files with 11 additions and 7 deletions
+1 -2
View File
@@ -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;