xml escaping, fixes #207
This commit is contained in:
+1
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user