sanitize-html
Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis
$
npm install sanitize-htmlOfficial docs outline
Extra Credit builds an outline of sanitize-html's docs the first time your work uses it. Until then, start at the official documentation.
More in npm packages
All 9,484-
get-port-please Get an available TCP port to listen
-
workerpool Offload tasks to a pool of workers on node.js and in the browser
-
bottleneck Distributed task scheduler and rate limiter
-
utila notareplacementforunderscore
-
@npmcli/installed-package-contents Get the list of files installed in a package in node_modules, including bundled dependencies
-
pstree.remy Collects the full tree of processes from /proc
-
ignore-by-default A list of directories you should ignore by default
-
eciesjs Elliptic Curve Integrated Encryption Scheme for secp256k1/curve25519
-
@tanstack/start-fn-stubs Stub functions for TanStack Start isomorphic and environment-specific functions
-
request Simplified HTTP request client.
-
is-relative Returns `true` if the path appears to be relative.
-
atob atob for Node.JS and Linux / Mac / Windows CLI (it's a one-liner)