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
Example usage
// Load default implementationvar decode = ; // Load specific versionvar decode = // browser versionvar decode = // node version // returns 'foo © bar ≠ baz 𝌆 qux'
License
entity-decode is available under the MIT license.