JSPM

decode-html

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 24711
  • Score
    100M100P100Q176827F
  • License MIT

decode html entities

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('&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