Easy python solution using 1 pointer
python\nclass Solution:\n    def entityParser(self, text: str) -> str:\n        i=0\n        res=\'\'\n        while i<len(text):\n            c=text[i]\n      
```python\nclass Solution:\n    def entityParser(self, text: str) -> str:\n        i=0\n        res=\'\'\n        while i<len(text):\n            c=text[i]\n            if c==\'&\':\n                if text[i:i+6] == \'&quot;\':\n                    i+=6\n                    res+=\'"\'\n                elif text[i:i+6] == \'&apos;\':\n                    i+=6\n                    res+="\'"\n                elif text[i:i+5] == \'&amp;\':\n                    i+=5\n                    res+="&"\n                elif text[i:i+4] == \'&gt;\':\n                    i+=4\n                    res+=">"\n                elif text[i:i+4] == \'&lt;\':\n                    i+=4\n                    res+="<" \n                elif text[i:i+7] == \'&frasl;\':\n                    i+=7\n                    res+="/" \n                else:\n                    res+=\'&\'\n                    i+=1\n            else:\n                res+=c\n                i+=1\n        return res\n```
[]