LBRY Block Explorer

LBRY Claims • html-entity-decoder

5ea2949568c95ce792597f98a2dd9b65ee9857af

Published By
Anonymous
Created On
25 Nov 2019 05:13:01 UTC
Transaction ID
Cost
Safe for Work
Free
Yes
HTML entity decoder
# html-entity-decoder

replaces every html entity in a string with the corresponding unicode character

## Usage

First, install the package using npm:

```bash
npm install html-entity-decoder --save
```

Then, require the package and use it like so:

```javascript
const decoder = require('html-entity-decoder');

console.log(decoder.feed('&qout;Hello, World!"')); // "Hello, World!"
console.log(decoder.feed('Foo © bar 𝌆 baz ☃ qux')); // Foo © bar ? baz ☃ qux
```

For more info, refer to [tests.js](https://github.com/blackish-murderer/html-entity-decoder/blob/master/tests.js) in the source repository

## License

MIT License
Author
Content Type
Unspecified
application/zip
Language
English
Open in LBRY