decode-html

decode html entities

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
decode-html
1422.0.07 years ago9 years agoMinified + gzip package size for decode-html in KB

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