Try to fix issues with encoding.

This commit is contained in:
Paulo Gustavo Veiga
2012-11-28 21:44:17 -03:00
parent 66e4b0fb19
commit ebd6f886d5
2 changed files with 5 additions and 5 deletions

View File

@@ -177,7 +177,10 @@ public class Mindmap {
throws IOException {
String xml = this.getXmlStr();
if (xml != null) {
xml = StringEscapeUtils.escapeJavaScript(xml);
xml = xml.replace("'", "\\'");
xml = xml.replace("\n", "\\n");
xml = xml.replace("\r", "");
xml = xml.trim();
}
return xml;
}