Java 1 line solution using String class replace methods
\n\tpublic static String entityParser1(String text) {\n        return text.replace("&quot;", "\\"").replace("&apos;", "\'").replace("&gt;", ">").replace("&lt;",
```\n\tpublic static String entityParser1(String text) {\n        return text.replace("&quot;", "\\"").replace("&apos;", "\'").replace("&gt;", ">").replace("&lt;", "<").replace("&frasl;", "/").replace("&amp;", "&");\n\t}\n```
[]