mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
Fix firefox issue with \b caracters.
This commit is contained in:
parent
7a401b648e
commit
43e9f8fcad
@ -173,6 +173,7 @@ public class Mindmap {
|
|||||||
this.title = title;
|
this.title = title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
public String getXmlAsJsLiteral()
|
public String getXmlAsJsLiteral()
|
||||||
throws IOException {
|
throws IOException {
|
||||||
String xml = this.getXmlStr();
|
String xml = this.getXmlStr();
|
||||||
@ -180,6 +181,13 @@ public class Mindmap {
|
|||||||
xml = xml.replace("'", "\\'");
|
xml = xml.replace("'", "\\'");
|
||||||
xml = xml.replace("\n", "\\n");
|
xml = xml.replace("\n", "\\n");
|
||||||
xml = xml.replace("\r", "");
|
xml = xml.replace("\r", "");
|
||||||
|
|
||||||
|
xml = xml.replace("\\b", "\\\\b");
|
||||||
|
xml = xml.replace("\\t", "\\\\t");
|
||||||
|
xml = xml.replace("\\r", "\\\\r");
|
||||||
|
xml = xml.replace("\\n", "\\\\n");
|
||||||
|
|
||||||
|
|
||||||
xml = xml.trim();
|
xml = xml.trim();
|
||||||
}
|
}
|
||||||
return xml;
|
return xml;
|
||||||
|
Loading…
Reference in New Issue
Block a user