mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-06 07:06:19 +00:00
#1172 Text content is wrong after decompilation: double escape fixed
This commit is contained in:
@@ -1109,8 +1109,8 @@ public class Helper {
|
||||
}
|
||||
|
||||
public static String escapeHTML(String text) {
|
||||
String[] from = new String[]{"&", "<", ">", "\"", "'", "/"};
|
||||
String[] to = new String[]{"&", "<", ">", """, "'", "/"};
|
||||
String[] from = new String[]{"&", "<", ">", "\"", "'", "/", "\r\n", "\r", "\n"};
|
||||
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