One line solution in Java
return text.replace("&quot;", "\\"").replace("&apos;", "\'").replace("&gt;", ">").replace("&lt;", "<").replace("&frasl;", "/").replace("&amp;", "&");\njust need
``` return text.replace("&quot;", "\\"").replace("&apos;", "\'").replace("&gt;", ">").replace("&lt;", "<").replace("&frasl;", "/").replace("&amp;", "&");```\njust need to take care of &amp as it can replace other characters,hence keep it in last\n\n
[]