Key numbers
As of 25 Sept 2026
- Weekly downloads
- 7.9m
- +133% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 7
- Direct, from package.json
- Last release
- 1 month ago
- v2.17.7
- GitHub stars
- 4.6k
- 653 forks
- Open issues / PRs
- 121 / 21
- Contributors
- -
- Commits, last 52 weeks
- 336
Downloads
Last week 2026-09-15 to 2026-09-21
7,871,463 downloads last week, 35,647,913 in the last month. The 12-month change of +133% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 7121 in total
- Latest version
- 2.17.7, 13 Aug 20261 month ago
- First published
- 10 Sept 2013
- Last push to GitHub
- 24 Sept 2026same day as the snapshot
- Repository archived
- No
- Open issues
- 121
- Open pull requests
- 21
- Commits, last 52 weeks
- 336
- Dependents on npm
- 2,645
Major versions
- v2 first release 2.0.0, 23 Sept 2020
- v1 first release 1.0.0, 5 Jan 2014
- v0 first release 0.1.0, 10 Sept 2013
Recent releases
| Version | Published |
|---|---|
| 2.17.7 | 13 Aug 2026 |
| 2.17.6 | 10 Jul 2026 |
| 2.17.5 | 10 Jun 2026 |
| 2.17.4 | 13 May 2026 |
| 2.17.3 | 15 Apr 2026 |
| 2.17.2 | 18 Mar 2026 |
| 2.17.1 | 18 Feb 2026 |
| 2.17.0 | 14 May 2025 |
| 2.16.0 | 16 Apr 2025 |
| 2.15.0 | 19 Mar 2025 |
| 2.14.0 | 18 Dec 2024 |
| 2.13.1 | 3 Oct 2024 |
| 2.13.0 | 20 Mar 2024 |
| 2.12.1 | 22 Feb 2024 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=22.12.0
- Runtimes
- -
- Unpacked size (npm)
- 74 kB
- Dependencies (7)
launderpostcssdeepmergehtmlparser2parse-srcsetis-plain-objectescape-string-regexp
npm install sanitize-htmlCDN
jsDelivr: 195.8k requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/sanitize-html@2.17.7/ - unpkg
https://unpkg.com/sanitize-html@2.17.7/ - esm.sh
https://esm.sh/sanitize-html@2.17.7
Indexability: Indexed.