NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #4085 most downloaded on npm
Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
Latest stable
1.0.17
Last release 29 days ago
24 Oct 2026
Release timing varies
gaps range from 6 weeks to 2.6 years
Rarely documented
notes for 11 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
73 releases · first in 2012
Drag across the ruler to compare, or tap a release to open it.
fix: use the default callback when escapeHtml, onTag, onTagAttr, onIgnoreTag, onIgnoreTagAttr or safeAttrValue is null, undefined, or not a function.
escapeHtml, onTag, onTagAttr, onIgnoreTag, onIgnoreTagAttr or safeAttrValue is null, undefined, or not a function. An own function still overrides the default, and inherited properties are still ignored (#304).filterXSSWithResult() copies only own option properties, so a polluted prototype can no longer supply callbacks.null and undefined whiteList / allowList as unset. An explicit object, including {}, is still used. When whiteList is unset, allowList is used; otherwise the default whitelist is used.fix: reject unsafe URL schemes in action and formaction when allowed by a custom whitelist. Form destinations now allow only HTTP(S) and relative URLs
action and formaction when allowed by a custom whitelist. Form destinations now allow only HTTP(S) and relative URLs; other schemes, including javascript:, data:, mailto:, tel: and FTP, are rejected. The default whitelist is unaffected.filterXSSWithResult() to return sanitized HTML and records of ignored tags and attributes, with TypeScript declarations (#297, #299, #300).Your coding agent can read these notes before it upgrades. Set up the MCP server →
feat: add ` ` to default whitelist by @rayrny
fix: problem with not closed tag by @slawiko
revert: fix: comment has encoded
feat: add eslint:recommended check by @lumburr
feat: add support for allowList as an alias for whiteList by @schu34
Fix: #239 stripCommentTag DoS attack
Fix whitespace bypass #218 by @TomAnthony
<summary> to default whitelist #216 by @spacegaier<figure> and <figcaption> to default whitelist by @daraz999<audio crossorigin muted>, <video crossorigin muted playsinline poster> to default whitelist<strike> to default whitelistonTag optionsAllow default imports in TS #200 by @danvk
added support for src embedded image, ftp and relative urls by @sijanec
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.