mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-08-20 12:30:44 +02: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;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String getXmlAsJsLiteral()
|
||||
throws IOException {
|
||||
String xml = this.getXmlStr();
|
||||
@ -180,6 +181,13 @@ public class Mindmap {
|
||||
xml = xml.replace("'", "\\'");
|
||||
xml = xml.replace("\n", "\\n");
|
||||
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();
|
||||
}
|
||||
return xml;
|
||||
|
Loading…
Reference in New Issue
Block a user