npm · npm:sanitize-html
sanitize-html active
Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis
| Latest stable version | 2.17.7 |
|---|---|
| Published | 2026-08-13 15:45:38 UTC |
| Requires (engines) | {"node":">=22.12.0"} |
| Peer dependencies | — |
| Dist-tags | alpha: 2.17.5-alpha.1 latest: 2.17.7 previous: 1.27.5 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-09-28 08:57:08 UTC |
| Sources | registry.npmjs.org, registry.npmjs.org, api.deps.dev |
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-08-13 15:45:38 UTC · 46 days ago |
| Stable releases in the last 12 months | 7 |
| Published versions | 126 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
2.17.7 | 2026-08-13 15:45:38 UTC |
2.17.6 | 2026-07-10 18:05:45 UTC |
2.17.5 | 2026-06-10 17:14:18 UTC |
2.17.4 | 2026-05-13 14:01:00 UTC |
2.17.3 | 2026-04-15 17:48:03 UTC |
2.17.2 | 2026-03-18 17:59:53 UTC |
2.17.1 | 2026-02-18 20:36:19 UTC |
2.17.0 | 2025-05-14 16:16:15 UTC |
2.16.0 | 2025-04-16 17:55:59 UTC |
2.15.0 | 2025-03-19 16:06:54 UTC |
2.14.0 | 2024-12-18 17:37:31 UTC |
2.13.1 | 2024-10-03 14:09:17 UTC |
2.13.0 | 2024-03-20 18:50:43 UTC |
2.12.1 | 2024-02-22 16:38:17 UTC |
2.12.0 | 2024-02-21 15:38:11 UTC |
2.11.0 | 2023-06-21 16:09:00 UTC |
2.10.0 | 2023-02-17 20:23:14 UTC |
2.9.0 | 2023-02-01 14:34:56 UTC |
2.8.1 | 2022-12-21 15:41:57 UTC |
2.8.0 | 2022-12-12 17:55:32 UTC |
Showing the 20 most recent of 121 versions. JSON
Frequently asked questions
What is the latest version of sanitize-html?
The latest stable version of sanitize-html is 2.17.7, published on 2026-08-13. Verified by Vigia on 2026-09-28.
Is sanitize-html deprecated?
No. sanitize-html is not marked as deprecated in the registry.
Which Node.js version does sanitize-html require?
sanitize-html 2.17.7 declares this requirement: {"node":">=22.12.0"}.
Does sanitize-html 2.17.7 have known vulnerabilities?
No known advisories affect sanitize-html 2.17.7 according to the data Vigia checks.
Is sanitize-html still maintained?
sanitize-html published 7 stable releases in the last 12 months; the most recent was 46 days ago. Activity: active.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- @storybook/csf
- @graphql-tools/executor
- babel-runtime
- cookies
- is-electron
- strip-comments
- wait-on
- @react-aria/focus
- @octokit/auth-app
- tinyqueue
- leac
- @tufjs/canonical-json
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/sanitize-html
GET https://vigia.coredls.cloud/v1/packages/npm/sanitize-html/versions/{version}