bundle/roast
sanitize-html@2.17.4
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.4 · entry index.js · #html#parser#sanitizer#sanitize
weighed at
brotli q11 · rolldown + minify
wire weight · brotli
59.43 kB
verdict medium
brotli is 33% of minified unpacks 3.0× on the wire
minified
181.9 kB
saved on the wire
122.4 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 @10.1.0
· is-plain-object @5.0.0
· parse-srcset @1.0.2
· postcss @8.5.15
· 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.