# @types/sanitize-html

> TypeScript definitions for sanitize-html

Latest version **2.16.2** (published 2026-09-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/sanitize-html
pnpm add @types/sanitize-html
yarn add @types/sanitize-html
bun add @types/sanitize-html
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.16.2 |
| Published | 2026-09-28 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51484 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/sanitize-html
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sanitize-html
- npm.io page: https://npm.io/package/@types/sanitize-html

## Dependencies (1)

- [htmlparser2](https://npm.io/package/htmlparser2.md) ^12.0

## Recent versions

- 2.16.2 (latest) — 2026-09-28
- 2.16.1 (ts5.5) — 2026-03-06
- 2.16.0 (ts5.1) — 2025-05-05
- 2.15.0 (ts5.0) — 2025-03-28
- 2.13.0 (ts4.9) — 2024-08-18
- 2.11.0 (ts4.6) — 2024-02-05
- 2.9.5 (ts4.5) — 2023-11-21
- 2.9.0 (ts4.2) — 2023-03-14
- 2.6.2 (ts3.8) — 2022-01-11
- 2.5.0 (ts3.7) — 2021-10-20
- 2.3.2 (ts3.6) — 2021-07-06
- 2.3.1 (ts3.5) — 2021-04-20
- 1.27.1 (ts3.4) — 2021-01-22
- 1.27.0 (ts3.3) — 2020-09-09
- 1.23.3 (ts3.0) — 2020-06-30
- … 36 more at https://npm.io/package/@types/sanitize-html/versions

## README

# Installation
> `npm install --save @types/sanitize-html`

# Summary
This package contains type definitions for sanitize-html (https://github.com/punkave/sanitize-html).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sanitize-html.

### Additional Details
 * Last updated: Mon, 28 Sep 2026 23:34:57 GMT
 * Dependencies: [htmlparser2](https://npmjs.com/package/htmlparser2)

# Credits
These definitions were written by [Rogier Schouten](https://github.com/rogierschouten), [Afshin Darian](https://github.com/afshin), [Rinze de Laat](https://github.com/biermeester), [Johan Davidsson](https://github.com/johandavidson), [Jianrong Yu](https://github.com/YuJianrong), [GP](https://github.com/paambaati), [Dariusz Syncerek](https://github.com/dsyncerek), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Pirasis Leelatanon](https://github.com/1pete), [Alex Rantos](https://github.com/alex-rantos), and [Dylan Armstrong](https://github.com/dylanarmstrong).

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