mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
Try to fix issues with encoding.
This commit is contained in:
parent
66e4b0fb19
commit
ebd6f886d5
@ -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;
|
||||
}
|
||||
|
@ -125,10 +125,7 @@ public class MindMapBean {
|
||||
}
|
||||
|
||||
public String getXmlAsJsLiteral() throws IOException {
|
||||
final String result = this.mindmap.getXmlAsJsLiteral();
|
||||
|
||||
// Firefox is failing for this. Need to be reviewed ...
|
||||
return result.replace("\\u0000", "");
|
||||
return this.mindmap.getXmlAsJsLiteral();
|
||||
}
|
||||
|
||||
public String getProperties() throws WiseMappingException {
|
||||
|
Loading…
Reference in New Issue
Block a user