sanitize-html 1.27.5
Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis
sanitize-html@1.27.5 was published on 2020-09-23. Its manifest declares 4 runtime dependencies and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. No Node.js engine requirement is declared in this manifest.
All sanitize-html versions · Permanent reference to 1.27.5 · Latest release
Package specifications
| Version | 1.27.5 |
|---|---|
| License declaration | MIT |
| Published | 2020-09-23T14:08:28.237Z |
| Node.js requirement | Not declared |
| Type declarations | Not declared |
| Runtime dependency count | 4 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 1643.08 KiB |
| Published file count | 7 |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | dist/sanitize-html.js |
| Side effects declaration | false |
| Direct advisories | 10 |
| Resolved graph dependencies | 13 |
| Repository stars | 4654 |
| Repository forks | 652 |
Install sanitize-html 1.27.5
npm install sanitize-html@1.27.5 pnpm add sanitize-html@1.27.5 yarn add sanitize-html@1.27.5
Runtime dependencies
- lodash ^4.17.15
- postcss ^7.0.27
- htmlparser2 ^4.1.0
- parse-srcset ^1.0.2
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- htmlparser2@4.1.0 — direct
- lodash@4.18.1 — direct
- parse-srcset@1.0.2 — direct
- postcss@7.0.39 — direct
- domelementtype@2.3.0 — indirect
- domhandler@3.3.0 — indirect
- domutils@2.8.0 — indirect
- entities@2.2.0 — indirect
- picocolors@0.2.1 — indirect
- source-map@0.6.1 — indirect
- dom-serializer@1.4.1 — indirect
- domhandler@4.3.1 — indirect
- domhandler@4.3.1 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
Known direct advisories
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Maintained | 10/10 — 30 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10 |
|---|---|
| Code-Review | 9/10 — Found 27/29 approved changesets -- score normalized to 9 |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| License | 0/10 — license file not detected |
| Security-Policy | 9/10 — security policy file detected |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| SAST | 9/10 — SAST tool is not run on all commits -- score normalized to 9 |
| Fuzzing | 0/10 — project is not fuzzed |
Evidence and freshness
- https://registry.npmjs.org/sanitize-html/1.27.5 — retrieved 2026-10-29T10:06:58.355Z
- https://api.deps.dev/v3/projects/github.com%2Fapostrophecms%2Fapostrophe — retrieved 2026-10-29T09:32:03.505Z
- https://api.deps.dev/v3/systems/npm/packages/sanitize-html/versions/1.27.5 — retrieved 2026-10-29T10:06:58.880Z
- https://api.deps.dev/v3/systems/npm/packages/sanitize-html/versions/1.27.5:dependencies — retrieved 2026-10-29T10:06:58.898Z