html-entity-decoder

1.0.1 • Public • Published

html-entity-decoder

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

Usage

First, install the package using npm:

npm install html-entity-decoder --save

Then, require the package and use it like so:

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 in the source repository

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i html-entity-decoder

Weekly Downloads

74

Version

1.0.1

License

MIT

Unpacked Size

35.6 kB

Total Files

6

Last publish

Collaborators

  • blackish-murderer