Skip to content
JS
Package

xhtml-purifier

Simple HTML purifier/cleaner for untrusted HTML.

v0.4.3, 24 Jun 2026No license field-Types: Bundled
$ npm install xhtml-purifier

Key numbers

As of 25 Sept 2026
Weekly downloads
4.2k
+398% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
3 months ago
v0.4.3
GitHub stars
5
5 forks
Open issues / PRs
0 / 2
Contributors
-
Commits, last 52 weeks
10

Downloads

Last week 2026-09-15 to 2026-09-21
02k4k6kSept 2025Mar 2026Sept 2026High 4k (15 Sept 2026)Low 230 (9 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

4,176 downloads last week, 7,938 in the last month. The 12-month change of +398% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
0.4.3, 24 Jun 20263 months ago
First published
-
Last push to GitHub
14 Sept 202610 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
2
Commits, last 52 weeks
10
Dependents on npm
1

Major versions

-

Recent releases

-

Module format
-Not determined from package.json
TypeScript types
Bundled
Node.js engine range
>= 0.8.0
Runtimes
-
Unpacked size (npm)
36 kB
Dependencies (0)
None
npm install xhtml-purifier
  • jsDelivrhttps://cdn.jsdelivr.net/npm/xhtml-purifier@0.4.3/
  • unpkghttps://unpkg.com/xhtml-purifier@0.4.3/
  • esm.shhttps://esm.sh/xhtml-purifier@0.4.3
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 4176 < 10000; no category.