# xmldecode

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

Latest version **0.1.1** (published 2020-09-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install xmldecode
pnpm add xmldecode
yarn add xmldecode
bun add xmldecode
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2020-09-13 |
| First published | 2016-08-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | M.K. |
| Maintainers | mk-pmb |
| Keywords | apos, CDATA, cdata, decode, entity, entities, HTML, html, XML, xml |

## Links

- npm: https://www.npmjs.com/package/xmldecode
- Repository: https://github.com/mk-pmb/xmldefuse-js
- Homepage: https://github.com/mk-pmb/xmldefuse-js#readme
- Issues: https://github.com/mk-pmb/xmldefuse-js/issues
- npm.io page: https://npm.io/package/xmldecode

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2020-09-13
- 0.1.0 — 2016-08-29

## README

<!--#echo json="package.json" key="name" underline="=" -->
xmldecode
=========
<!--/#echo -->

<!--#echo json="package.json" key="description" -->
Decode the predefined XML entities (amp, lt, gt, apos, quot), CharRefs and
CDATA sections.
<!--/#echo -->

Definitions:
[Predefined XML entities](https://www.w3.org/TR/REC-xml/#NT-CharRef),
[CharRefs](https://www.w3.org/TR/REC-xml/#sec-predefined-ent)


API
---

This module exports one function:

### xmldecode(orig)

Returns a string with the text decoded from string `orig`.



Usage
-----

see [test.js](test.js)


<!--#toc stop="scan" -->


Related
-------

* [xmldefuse](https://npm.im/xmldefuse):
  Encode the predefined XML entities and CharRefs.
  Opt-out CharRef 39 for HTML. Bonus: Encode CDATA.
* [xmlunidefuse](https://npm.im/xmlunidefuse):
  Convert some additional, easily overlooked Unicode characters to CharRefs.



Known issues
------------

* Needs more/better tests and docs.




&nbsp;


License
-------
<!--#echo json="package.json" key=".license" -->
ISC
<!--/#echo -->

---
_Source: https://npm.io/package/xmldecode · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
