decode-html

    2.0.0 • Public • Published

    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

    Install

    npm i decode-html

    DownloadsWeekly Downloads

    14,631

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • andineck