$ cnpm install decode-html
npm install decode-html
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
npm test
MIT
Andi Neck | @andineck | intesso
Copyright 2013 - present © cnpmjs.org | Home |