Regex Javascript
\n    let map = {\n            \'&quot;\': \'"\',\n            \'&apos;\': "\'",\n            \'&amp;\' : \'&\',\n            \'&gt;\'  : \'>\',\n            \'
```\n    let map = {\n            \'&quot;\': \'"\',\n            \'&apos;\': "\'",\n            \'&amp;\' : \'&\',\n            \'&gt;\'  : \'>\',\n            \'&lt;\'  : \'<\',\n            \'&frasl;\':\'/\'}\n    return text.replace(/&amp;|&quot;|&apos;|&gt;|&lt;|&frasl;/g, function (m) {\n        return map[m];\n    });\n\t```
['JavaScript']