# html-es6cape

> Escape HTML special characters (including `)

Latest version **2.0.2** (published 2022-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-es6cape
pnpm add html-es6cape
yarn add html-es6cape
bun add html-es6cape
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2022-04-11 |
| First published | 2015-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Antonio Villagra De La Cruz |
| Maintainers | antoniovdlc |
| Keywords | html, escape, es6 |

## Links

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

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

- 2.0.2 (latest) — 2022-04-11
- 2.0.0 — 2021-03-20
- 1.0.5 — 2015-12-05
- 1.0.4 — 2015-11-06
- 1.0.3 — 2015-11-06
- 1.0.2 — 2015-10-28
- 1.0.1 — 2015-10-27
- 1.0.0 — 2015-10-26

## README

# html-es6cape

[![version](https://img.shields.io/npm/v/html-es6cape.svg)](http://npm.im/html-es6cape)
[![issues](https://img.shields.io/github/issues-raw/antoniovdlc/html-es6cape.svg)](https://github.com/AntonioVdlC/html-es6cape/issues)
[![downloads](https://img.shields.io/npm/dt/html-es6cape.svg)](http://npm.im/html-es6cape)
[![license](https://img.shields.io/npm/l/html-es6cape.svg)](http://opensource.org/licenses/MIT)

Escape HTML special characters (including `). 
> Please note the pun in the package name! :zap:

## Installation

This package is distributed via npm:

```
npm install html-es6cape
```

## Usage

```javascript
const escape = require("html-es6cape");

var unescapedString = `This is an evil unescaped string <"'&'">! #whoopwhoop`;
var escapedString = escape(unescapedString);
// "This is a nice escaped string &lt;&quot;&#39;&amp;&#39;&quot;&gt;! #whoopwhoop"
```

*- or -*

```javascript
import escape from "html-es6cape";

var unescapedString = `This is an evil unescaped string <"'&'">! #whoopwhoop`;
var escapedString = escape(unescapedString);
// "This is a nice escaped string &lt;&quot;&#39;&amp;&#39;&quot;&gt;! #whoopwhoop"
```

*- or -*

```javascript
import escape from "html-es6cape";

var escapedString = escape`This is an evil unescaped string <"'&'">! #whoopwhoop`;
// "This is a nice escaped string &lt;&quot;&#39;&amp;&#39;&quot;&gt;! #whoopwhoop"
```

## License
MIT

## Thanks
Special thanks to my family, my friends, my bae ... and [Kent C. Dodds](https://github.com/kentcdodds) for his series ["How to Write a JavaScript Library."](https://egghead.io/series/how-to-write-an-open-source-javascript-library)!

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