Package Exports
- decode-html
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (decode-html) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
decode-html
- decode html entities
- tiny function that replaces the html entities for the chars: "<", ">", "''", "&"
install
npm install decode-html
use
var decode = require('decode-html');
console.log(decode('<div class="hidden">NON&SENSE's</div>'));
// -> '<div class="hidden">NON&SENSE\'s</div>'
(opposite) encode function encode-html
test
npm test
license
MIT
author
Andi Neck | @andineck | intesso