# parse-html-text-content

> parse the textContent of all elements of the html text without having to create a DOM from the html

Latest version **1.1.1** (published 2019-08-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install parse-html-text-content
pnpm add parse-html-text-content
yarn add parse-html-text-content
bun add parse-html-text-content
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2019-08-06 |
| First published | 2018-11-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 64.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | jtara1 |
| Maintainers | jtara1 |
| Keywords | parse, html |

## Links

- npm: https://www.npmjs.com/package/parse-html-text-content
- Repository: https://github.com/jtara1/ParseHtmlTextContent
- Homepage: https://github.com/jtara1/ParseHtmlTextContent#readme
- Issues: https://github.com/jtara1/ParseHtmlTextContent/issues
- npm.io page: https://npm.io/package/parse-html-text-content

## Dependencies (3)

- [pn](https://npm.io/package/pn.md) ^1.1.0
- [papaparse](https://npm.io/package/papaparse.md) ^4.6.3
- [html-entities](https://npm.io/package/html-entities.md) ^1.2.1

## 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

- 1.1.1 (latest) — 2019-08-06
- 1.1.0 — 2019-08-05
- 1.0.4 — 2019-03-27
- 1.0.3 — 2018-12-03
- 1.0.2 — 2018-11-30
- 1.0.1 — 2018-11-30
- 1.0.0 — 2018-11-30

## README

# ParseHtmlTextContent
parse the textContent of all elements of the html text without having to create a DOM from the html

Uses regex to filter out text between & including chars: `<`, `>`
If the html text is has those characters encoded, this should
work smoothly; otherwise, it would parse the wrong values.
After parsing, it also decodes the html entities.
## Install

```bash
npm i -S parse-html-text-content
```

## Usage

```javascript
const parseTextContent = require('parse-html-text-content');

const htmlText = '<p>hello world</p>';
console.log(parseTextContent(htmlText)); // hello world
```

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