decode-html
decode html entities
Last updated 11 years ago by andineck .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install decode-html 
SYNC missed versions from official npm registry.

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('&lt;div class="hidden"&gt;NON&amp;SENSE&apos;s&lt;/div&gt;'));
// -> '<div class="hidden">NON&SENSE\'s</div>'

(opposite) encode function encode-html

test

npm test

license

MIT

author

Andi Neck | @andineck | intesso

Current Tags

  • 2.0.0                                ...           latest (9 years ago)

4 Versions

  • 2.0.0                                ...           9 years ago
  • 1.0.2                                ...           11 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 3
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |