BF [2868898] - Exported xml element must be CDATA
https://sourceforge.net/tracker/?func=detail&aid=2868898&group_id=176962&atid=879332
This commit is contained in:
parent
0661da10cb
commit
79d39984ca
|
@ -228,7 +228,11 @@ public class Translation
|
|||
if (valueString == null)
|
||||
valueString = "";
|
||||
value.setAttribute(XML_VALUE_ATTRIBUTE_ORIGINAL, origString);
|
||||
if (valueString.indexOf("<") != -1 || valueString.indexOf(">") != -1 || valueString.indexOf("&") != -1) {
|
||||
value.appendChild(document.createCDATASection(valueString));
|
||||
} else {
|
||||
value.appendChild(document.createTextNode(valueString));
|
||||
}
|
||||
row.appendChild(value);
|
||||
}
|
||||
root.appendChild(row);
|
||||
|
|
Loading…
Reference in New Issue