[Python 3] re.sub multiple replacements
\nclass Solution:\n    def entityParser(self, s: str) -> str:\n        \n        transform = {\n            "&quot;": "\\"",\n            "&apos;": "\'",\n     
```\nclass Solution:\n    def entityParser(self, s: str) -> str:\n        \n        transform = {\n            "&quot;": "\\"",\n            "&apos;": "\'",\n            "&amp;": "&",\n            "&gt;": ">",\n            "&lt;": "<",\n            "&frasl;": "/",\n        }\n        \n        return re.sub("|".join(transform), lambda m: transform[m[0]], s)\n```
[]