My Simple Java Solution using Map and replace all
\n//"&amp;gt; here there occurs an error if we add & inside the map instead of separetely replacing\n\nclass Solution {\n    public String entityParser(String t
```\n//"&amp;gt; here there occurs an error if we add & inside the map instead of separetely replacing\n\nclass Solution {\n    public String entityParser(String text) {\n        Map<String, String> map = new HashMap<>();\n        map.put("&apos;", "\'");\n        map.put("&quot;", "\\"");\n        map.put("&gt;", ">");\n        map.put("&lt;", "<");\n        map.put("&frasl;", "/");\n        for (String key: map.keySet()) {\n            text = text.replaceAll(key, map.get(key));\n        }\n        text = text.replaceAll("&amp;", "&");\n        return text;\n    }\n}\n```
['Java']