Small trick, Java Soln
\nclass Solution {\n    public String entityParser(String text) {\n        \n        HashMap<String,String> hashmap = new HashMap<>();\n        \n        hashma
```\nclass Solution {\n    public String entityParser(String text) {\n        \n        HashMap<String,String> hashmap = new HashMap<>();\n        \n        hashmap.put("&quot;","\\"");\n        hashmap.put("&apos;","\'");\n        \n        //On including in hashmap "&amp;gt;" -> > where as the answer should be "&gt;"\n        //hashmap.put("&amp;","&"); -> this cant be included here.\n        hashmap.put("&gt;",">");\n        hashmap.put("&lt;","<");\n        hashmap.put("&frasl;","/");\n        \n        for(Map.Entry<String,String> entry : hashmap.entrySet())\n        {\n            String key = entry.getKey();\n            text = text.replaceAll(key,entry.getValue());\n        }\n        \n        text = text.replaceAll("&amp;","&");\n        \n        return text;\n    }\n}\n```
[]