Wrap text-name in CDATA to prevent invalid XML output

This commit is contained in:
Tom MacWright 2011-12-09 18:00:34 -05:00
parent fe0cc34f8f
commit d334bdc6ba

View File

@ -118,7 +118,7 @@ tree.Definition.prototype.symbolizersToXML = function(env, symbolizers, zoom) {
if (selfclosing) {
xml += '/>\n';
} else {
xml += '>' + tagcontent + '</' + name + '>\n';
xml += '><![CDATA[' + tagcontent + ']]></' + name + '>\n';
}
}
xml += ' </Rule>\n';