This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Decode HTML entities (like: á, nbsp, etc) to convert them to the correct char | |
* | |
* version 1 | |
* | |
* Inspired by: https://stackoverflow.com/a/41791818/5604354 | |
* | |
* @param {string} string with html that has entities | |
* @return {string} decoded string | |
*/ |