JavaScript - flexible regex
js\nfunction entityParser(html) {\n  const entities = {\n    \'quot\': \'"\',\n    \'apos\': \'\\\'\',\n    \'amp\': \'&\',\n    \'gt\': \'>\',\n    \'lt\': \'<
```js\nfunction entityParser(html) {\n  const entities = {\n    \'quot\': \'"\',\n    \'apos\': \'\\\'\',\n    \'amp\': \'&\',\n    \'gt\': \'>\',\n    \'lt\': \'<\',\n    \'frasl\': \'/\'\n  };\n  \n  return html.replace(/&([a-z]+);/g, (m, p1) => entities[p1] || m);\n}\n```
['JavaScript']