# yizhi-html-escape

> HTML escape character util

Latest version **1.0.3** (published 2022-04-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install yizhi-html-escape
pnpm add yizhi-html-escape
yarn add yizhi-html-escape
bun add yizhi-html-escape
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-04-15 |
| First published | 2021-11-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yizhi |
| Keywords | html, special, entities, nbsp, lt, gt, &nbsp;, escape, unescape, 转义字符, character, parser, HTML转义字符 |

## Links

- npm: https://www.npmjs.com/package/yizhi-html-escape
- Repository: http://git.urnas.cn/yizhi-node-lib/yizhi-html-escape
- npm.io page: https://npm.io/package/yizhi-html-escape

## 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.0.3 (latest) — 2022-04-15
- 1.0.2 — 2021-11-15
- 1.0.1 — 2021-11-15

## README

# yizhi-html-escape


A HTML escape character util. (>_<)


# Usage

```javascript
import {escape, unescape} from 'yizhi-html-escape'

escape('<div>Tom&Jerry</div>')
//Output:
// &lt;div&gt;Tom&amp;Jerry&lt;/div&gt;


unescape('&pi;=3.14, &yen;&cent;&pound;&copy;&reg;')
//Output：
// π=3.14, ¥¢£©®

```

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