bundle/roast
sanitize-html@2.17.6
new
file no. 001 / npm ▍weigh-in

sanitize-html DT

Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis

version 2.17.6 · entry index.js · #html#parser#sanitizer#sanitize
weighed at
brotli q11 · rolldown + minify
wire weight · brotli
54.40 kB
verdict medium
brotli is 34% of minified unpacks 2.9× on the wire
minified
160.3 kB
saved on the wire
105.9 kB
field notes
side effects
none (tree-shakeable)
module formats
CJS only
exports map
absent
types
via @types/sanitize-html
peer deps
none
the roast
AI · freshly written
incoming dispatch · priority: hot
the wire is humming…
dependencies
7 direct click to expand · hover for details
· deepmerge @4.3.1
· escape-string-regexp @4.0.0
· htmlparser2 @12.0.0
· is-plain-object @5.0.0
· parse-srcset @1.0.2
· postcss @8.5.19
· launder @1.7.1
see also
outbound
another case
drop a package

Got a heavier sin to confess? Roast another package — or share this one to make a friend reconsider their dep tree.