[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[TXT]CHANGELOG.md2023-06-08 13:46 331 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]LICENSE2023-06-08 13:46 1.0K0fb859dc fixed mobile overflwo options [كارل مبارك]
[TXT]README.md2023-06-08 13:46 743 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]browser.js2023-06-08 13:46 523 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]node.js2023-06-08 13:46 39 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]package.json2023-06-08 13:46 1.4K0fb859dc fixed mobile overflwo options [كارل مبارك]
# entity-decode

This purpose of this library is to provide a single interface to browser and node decode implementation.

It is using the following two underlying implementations:
- Browser: micro decode implementation using browser's NodeElement.textContent method
- Node: [he](https://github.com/mathiasbynens/he)

## Example usage

```js
// Load default implementation
var decode = require('entity-decode');

// Load specific version
var decode = require('entity-decode/browser') // browser version
var decode = require('entity-decode/node') // node version

decode('foo © bar ≠ baz 𝌆 qux') 
// returns 'foo © bar ≠ baz 𝌆 qux'
```

## License

entity-decode is available under the [MIT](https://mths.be/mit) license.