BEATS 73% without using HashMap
Code
# Code
```java []
class Solution {

    public String entityParser(String text) {
        char a = '"';
        String b = "'";
        text = text.replace("&quot;", Character.toString(a));
        text = text.replace("&apos;", b);
        text = text.replace("&amp;", "-1");
        text = text.replace("&gt;", ">");
        text = text.replace("&lt;", "<");
        text = text.replace("&frasl;", "/");
        text = text.replace("-1", "&");
        return text;  
    }
}
```
['Java']