NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #3077 most downloaded on npm
Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis
Latest stable
2.18.1
Last release 1 months ago
14 Oct 2026
Ships unpredictably
gaps range from 2 weeks to 9 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
128 releases · first in 2013
Drag across the ruler to compare, or tap a release to open it.
fixed a javascript URL attack vector. naughtyHref must entity-decode URLs and also check for mixed-case scheme names. Thanks to pinpickle.
fixed a javascript URL attack vector. naughtyHref must entity-decode URLs and also check for mixed-case scheme names. Thanks to pinpickle.
Doc tweaks.
Doc tweaks.
If the style tag is disallowed, then its content should be dumped, so that it doesn't appear as text. We were already doing this for script tags, howe
If the style tag is disallowed, then its content should be dumped, so that it doesn't appear as text. We were already doing this for script tags, however in both cases the content is now preserved if the tag is explicitly allowed.
We're rocking our tests and have been working great in production for months, so: declared 1.0.0 stable.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
do not double-escape entities in attributes or text. Turns out the "text" provided by htmlparser2 is already escaped.
do not double-escape entities in attributes or text. Turns out the "text" provided by htmlparser2 is already escaped.
packaging error meant it wouldn't install properly.
packaging error meant it wouldn't install properly.
discard the text of script tags.
discard the text of script tags.
initial release.
initial release.
One column per quarter.