mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-11 08:32:13 +00:00
fix5
This commit is contained in:
@@ -360,7 +360,7 @@ public class XFLXmlWriter implements XMLStreamWriter {
|
||||
//String[] to = new String[]{"&", "<"};
|
||||
// temporary escape everything to make easier to compare the export with the old export
|
||||
String[] from = new String[]{"&", "<", "\"", "'", "\r", "\n"};
|
||||
String[] to = new String[]{"&", "<", """, "'", "
", "
"};
|
||||
String[] to = new String[]{"&", "<", """, "'", "
", "
"};
|
||||
for (int i = 0; i < from.length; i++) {
|
||||
text = text.replace(from[i], to[i]);
|
||||
}
|
||||
@@ -369,7 +369,7 @@ public class XFLXmlWriter implements XMLStreamWriter {
|
||||
|
||||
public static String escapeAttribute(String text) {
|
||||
String[] from = new String[]{"&", "<", "\"", "'", "\r", "\n"};
|
||||
String[] to = new String[]{"&", "<", """, "'", "
", "
"};
|
||||
String[] to = new String[]{"&", "<", """, "'", "
", "
"};
|
||||
for (int i = 0; i < from.length; i++) {
|
||||
text = text.replace(from[i], to[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user