Wrap text-name in CDATA to prevent invalid XML output
This commit is contained in:
parent
fe0cc34f8f
commit
d334bdc6ba
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user