forked from I2P_Developers/i2p.i2p
Fix for #588 part 3: Escape & character FIRST so other escapes aren't broken
This commit is contained in:
@ -1476,8 +1476,8 @@ public class DataHelper {
|
||||
public static String escapeHTML(String unescaped) {
|
||||
if (unescaped == null) return "";
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
map.put("\"",""");
|
||||
map.put("&","&");
|
||||
map.put("\"",""");
|
||||
map.put("<","<");
|
||||
map.put(">",">");
|
||||
String escaped = unescaped;
|
||||
@ -1497,8 +1497,8 @@ public class DataHelper {
|
||||
public static String unescapeHTML(String escaped) {
|
||||
if (escaped == null) return "";
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
map.put(""","\"");
|
||||
map.put("&","&");
|
||||
map.put(""","\"");
|
||||
map.put("<","<");
|
||||
map.put(">",">");
|
||||
String unescaped = escaped;
|
||||
|
Reference in New Issue
Block a user