mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +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 {
|
throws IOException {
|
||||||
String xml = this.getXmlStr();
|
String xml = this.getXmlStr();
|
||||||
if (xml != null) {
|
if (xml != null) {
|
||||||
xml = StringEscapeUtils.escapeJavaScript(xml);
|
xml = xml.replace("'", "\\'");
|
||||||
|
xml = xml.replace("\n", "\\n");
|
||||||
|
xml = xml.replace("\r", "");
|
||||||
|
xml = xml.trim();
|
||||||
}
|
}
|
||||||
return xml;
|
return xml;
|
||||||
}
|
}
|
||||||
|
@ -125,10 +125,7 @@ public class MindMapBean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getXmlAsJsLiteral() throws IOException {
|
public String getXmlAsJsLiteral() throws IOException {
|
||||||
final String result = this.mindmap.getXmlAsJsLiteral();
|
return this.mindmap.getXmlAsJsLiteral();
|
||||||
|
|
||||||
// Firefox is failing for this. Need to be reviewed ...
|
|
||||||
return result.replace("\\u0000", "");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getProperties() throws WiseMappingException {
|
public String getProperties() throws WiseMappingException {
|
||||||
|
Loading…
Reference in New Issue
Block a user