2.0.0 • Published 2 years ago

entities-dom-decode v2.0.0

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

Entities DOM Decode

A ~200 bytes function with no dependencies for decoding HTML entities, it only works in the browser.

Features

  • Every other package for decoding HTML entities ships with a ~30kb list of entities supported, this package doesn't need such list as it uses the DOM for decoding entities, and it's as a result ~99% smaller. The downside is that it only works in the browser.

Install

npm install --save entities-dom-decode

Usage

import decode from 'entities-dom-decode';

decode ( '&:' ); // => '&:'

License

MIT © Fabio Spampinato