Python - Easy solution using Regex
ApproachUsing a dictionary for quick access to characters, I used a regex pattern to replace the keys by their values in the text. The lambda function either re
# Approach
Using a dictionary for quick access to characters, I used a regex pattern to replace the keys by their values in the text. The lambda function either returns the value or the actual match if it isn't part of the parser.

# Complexity
- Time complexity: O(n)

# Code
```python3 []
import re


class Solution:
    def __init__(self):
        self.parser = {
            "&quot;": '"',
            "&apos;": "'",
            "&amp;": "&",
            "&gt;": ">",
            "&lt;": "<",
            "&frasl;": "/",
        }

    def entityParser(self, text: str) -> str:
        pattern = r"\&(\w*)\;"
        return re.sub(
            pattern,
            lambda m: self.parser.get(m.group(0)) or m.group(0),
            text,
        )
```
['Python3']