Netherworld's Pretend Minibar

    xmldecode

    0.1.1 • Public • Published

    xmldecode

    Decode the predefined XML entities (amp, lt, gt, apos, quot), CharRefs and CDATA sections.

    Definitions: Predefined XML entities, CharRefs

    API

    This module exports one function:

    xmldecode(orig)

    Returns a string with the text decoded from string orig.

    Usage

    see test.js

    Related

    • xmldefuse: Encode the predefined XML entities and CharRefs. Opt-out CharRef 39 for HTML. Bonus: Encode CDATA.
    • xmlunidefuse: Convert some additional, easily overlooked Unicode characters to CharRefs.

    Known issues

    • Needs more/better tests and docs.

     

    License

    ISC

    Install

    npm i xmldecode

    DownloadsWeekly Downloads

    30

    Version

    0.1.1

    License

    ISC

    Unpacked Size

    5.39 kB

    Total Files

    4

    Last publish

    Collaborators

    • mk-pmb