# transferred_html

> 转义HTML

Latest version **1.0.1** (published 2022-03-17) · ISC license · 0 weekly downloads

## Install

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

## 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.0.1 |
| Published | 2022-03-17 |
| First published | 2022-03-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | overspread |
| Keywords | [html,escape] |

## Links

- npm: https://www.npmjs.com/package/transferred_html
- npm.io page: https://npm.io/package/transferred_html

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-03-17
- 1.0.0 — 2022-03-17

## README

## 安装
```
npm i transferred_html
```

## 导入
```js
const transferred=require('reansferred_html')
```

## HTML 转义

```带转义的html
let htmlstr = '<div style="color">hasdhfasdf<span>123&nbsp;</span></div>';

``` js
// 调用 htmlEscape 对 HTML 进行转义特殊字符
let str = htmlEscape.htmlEscape(htmlstr);
console.log(str);
```
``` js
// 调用 htmlUnEscape 对 HTML 进行还原特殊字符
let str2 = htmlEscape.htmlUnEscape(str);
console.log(str2);
```
## 开源协议
ISC

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