npm · npm:sanitize-html
sanitize-html 活跃
Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis
sanitize-html 的最新稳定版本是 2.18.2,发布于 2026-11-11。Vigia 于 2026-11-12 核实。
| 最新稳定版本 | 2.18.2 |
|---|---|
| 发布时间 | 2026-11-11 19:53:59 UTC |
| 安装 | npm install sanitize-html@latest |
| 运行要求(engines) | {"node":">=22.12.0"} |
| Peer 依赖 | — |
| Dist 标签 | alpha: 2.17.5-alpha.1 latest: 2.18.2 previous: 1.27.5 |
| 许可证 | MIT |
| 最新版本的安全公告 | 暂无已知 |
| 最近核实 | 2026-11-12 21:01:59 UTC |
| 来源 | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
维护情况
| 活跃度 | 活跃 |
|---|---|
| 最近的稳定版本 | 2026-11-11 19:53:59 UTC · 1 天前 |
| 过去 12 个月的稳定版本数 | 10 |
| 已发布版本数 | 129 |
仅根据发布时间估算,不反映对 issue 或安全问题的响应速度。
版本历史
| 版本 | 发布时间 |
|---|---|
2.18.2 | 2026-11-11 19:53:59 UTC |
2.18.1 | 2026-10-14 18:15:44 UTC |
2.18.0 | 2026-09-30 19:26:15 UTC |
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 |
显示 124 个版本中最新的 20 个。 JSON
版本兼容性
声明支持各运行时版本的最新稳定版本(依据每个版本发布的要求)。
| 运行时 | 最新兼容版本 |
|---|---|
node 16 | 2.17.5 |
node 18 | 2.17.5 |
node 20 | 2.17.5 |
node 22 | 2.18.2 |
node 24 | 2.18.2 |
把这些数据交给你的 AI 智能体
Vigia 是免费的 MCP 服务器:你的编程智能体在写代码之前就能检查版本、不兼容变更和安全漏洞。无需注册,无需 API 密钥。
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
添加到 Cursor添加到 VS Code★ 在 GitHub 上加星
任何其他 MCP 客户端
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }常见问题
sanitize-html 的最新版本是什么?
sanitize-html 的最新稳定版本是 2.18.2,发布于 2026-11-11。Vigia 于 2026-11-12 核实。
如何安装 sanitize-html 的最新版本?
运行 npm install sanitize-html@latest。最新稳定版本是 2.18.2(2026-11-12 核实)。
sanitize-html 是否已弃用?
否。注册表中 sanitize-html 未被标记为已弃用。
sanitize-html 需要哪个版本的 Node.js?
sanitize-html 2.18.2 声明的要求为:{"node":">=22.12.0"}。
sanitize-html 2.18.2 是否存在已知漏洞?
根据 Vigia 检查的数据,没有已知安全公告影响 sanitize-html 2.18.2。
sanitize-html 是否仍在维护?
sanitize-html 在过去 12 个月内发布了 10 个稳定版本,最近一次在 1 天前。活跃度:活跃。
观察到的变更
- Wed Nov 11 2026 21:01:35 GM +0000 (Coordinated Universal Time) — released 2.18.1 → 2.18.2
- hu Oct 15 2026 12:22:22 GMT+0000 (Coordinated Universal Time) — released 2.18.1 → 2.18.1
- Wed Oct 14 2026 18:22:00 GM +0000 (Coordinated Universal Time) — released 2.18.0 → 2.18.1
- hu Oct 01 2026 09:38:30 GMT+0000 (Coordinated Universal Time) — released 2.18.0 → 2.18.0
- Wed Sep 30 2026 19:35:52 GM +0000 (Coordinated Universal Time) — released 2.17.7 → 2.18.0
相关软件包
- @graphql-tools/executor
- @storybook/csf
- babel-runtime
- cookies
- is-electron
- strip-comments
- @react-aria/focus
- wait-on
- @octokit/auth-app
- tinyqueue
- @tufjs/canonical-json
- leac
用于 README 的徽章
展示此软件包的最新版本、维护状态以及是否已弃用。复制 Markdown:
[](https://vigia.coredls.cloud/npm/sanitize-html) [](https://vigia.coredls.cloud/npm/sanitize-html) [](https://vigia.coredls.cloud/npm/sanitize-html)
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/sanitize-html
GET https://vigia.coredls.cloud/v1/packages/npm/sanitize-html/versions/{version}