# html-escape-translate

> escape html tag to the escape-chars

Latest version **1.0.1** (published 2017-05-14) · 0 weekly downloads

## Install

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

## 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 | 2017-05-14 |
| First published | 2017-05-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | boyce_zhang |
| Keywords | html, escape |

## Links

- npm: https://www.npmjs.com/package/html-escape-translate
- Repository: https://github.com/zhangboyce/html-escape
- Homepage: https://github.com/zhangboyce/html-escape#readme
- Issues: https://github.com/zhangboyce/html-escape/issues
- npm.io page: https://npm.io/package/html-escape-translate

## 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) — 2017-05-14
- 1.0.0 — 2017-05-13

## README

# html-escape-translate

将html的'<','>',''', '"', '&' 标签分别转义成 '&lt;', '&gt;, '&apos;, '&quot;, '&amp;'
或者反向将html的以上5个转义字符翻译成html的以上对应标签。

# Example

```js

import { escape, translate } from 'html-escape-translate';

let html = '<a href="http://xxx.com?p=1&q=2"></a>';
let text = "&lt;a href=&quot;http://xxx.com?p=1&amp;q=2&quot;&gt;&lt;/a&gt;";

console.log(escape(html));
console.log(translate(text));

```

# Installation

```
npm install html-escape-translate
```

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