bundle/roast
sanitize-html@2.18.1
← 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.18.1 · entry index.js · #html#parser#sanitizer#sanitize
▍ weighed at
brotli q11 · rolldown + minify
wire weight · brotli
49.26 kB
verdict medium
brotli is 33% of minified unpacks 3.0× on the wire
minified
150.2 kB
saved on the wire
100.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
6 direct click to expand · hover for details
· launder @1.7.2
· postcss @8.5.30
· htmlparser2 @12.0.0
· parse-srcset @1.0.2
· is-plain-object @5.1.0
· escape-string-regexp @4.0.0
▍ 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.