Java Solution
\nclass Solution {\n    public String entityParser(String text) {\n        HashMap<String,String> map = new HashMap();\n        map.put("&quot;","\\"");\n      
```\nclass Solution {\n    public String entityParser(String text) {\n        HashMap<String,String> map = new HashMap();\n        map.put("&quot;","\\"");\n        map.put("&apos;","\'");\n        map.put("&amp;","&");\n        map.put("&gt;",">");\n        map.put("&lt;","<");\n        map.put("&frasl;","/");\n        \n        StringBuilder result = new StringBuilder();\n        String[] words = text.split(";");\n        for(int i=0;i<words.length;i++){\n            String word = words[i];\n            word = (i==words.length-1 && text.charAt(text.length()-1) != \';\') \n                    ? word : word+";";\n            \n                for (Map.Entry<String,String> entry : map.entrySet()){\n                    if(word.contains(entry.getKey())){\n                    word =  word.replace(entry.getKey(),entry.getValue());\n                        break;\n                    }\n                }  \n              result.append(word);\n            }\n          \n        return result.toString();    \n    }\n}\n```
[]