mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-01 10:05:17 +00:00
xml export/import of null objects fixed
This commit is contained in:
@@ -869,7 +869,7 @@ public class Helper {
|
||||
return text;
|
||||
}
|
||||
|
||||
public static String escapeXML(String text) {
|
||||
public static String removeInvalidXMLCharacters(String text) {
|
||||
StringBuilder sb = new StringBuilder(text.length());
|
||||
for (int i = 0; i < text.length(); i++) {
|
||||
char ch = text.charAt(i);
|
||||
@@ -878,9 +878,9 @@ public class Helper {
|
||||
}
|
||||
}
|
||||
|
||||
return escapeHTML(sb.toString());
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
||||
public static Shape imageToShape(BufferedImage image) {
|
||||
Area area = new Area();
|
||||
Rectangle rectangle = new Rectangle();
|
||||
|
||||
Reference in New Issue
Block a user