$ npm install 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:
// 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'
entity-decode is available under the MIT license.
© 2010 - cnpmjs.org x YWFE | Home | YWFE