README
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