diff --git a/core/java/src/net/i2p/data/DataHelper.java b/core/java/src/net/i2p/data/DataHelper.java
index 6dfead3b3efb652cfb9863d1b9bed857b1128e25..cf99ea6f42a704f588fa4dcd2a34a2dcfefe112b 100644
--- a/core/java/src/net/i2p/data/DataHelper.java
+++ b/core/java/src/net/i2p/data/DataHelper.java
@@ -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("\"","&quot;");
         map.put("&","&amp;");
+        map.put("\"","&quot;");
         map.put("<","&lt;");
         map.put(">","&gt;");
         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("&quot;","\"");
         map.put("&amp;","&");
+        map.put("&quot;","\"");
         map.put("&lt;","<");
         map.put("&gt;",">");
         String unescaped = escaped;