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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    2
  • 0.1.0
    0

Package Sidebar

Install

npm i xmldecode

Weekly Downloads

2

Version

0.1.1

License

ISC

Unpacked Size

5.39 kB

Total Files

4

Last publish

Collaborators

  • mk-pmb