Ross ROSS = Recommend OSS · open-source software intelligence for agents

leizongmin/js-xss

Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist observed · 2026-08-28

github.com/leizongmin/js-xss · homepage · HTML · NOASSERTION (other) observed · 2026-08-28

Health v2 · maintenance only

69/100

  • Activity 81
  • Release rhythm 35
  • Longevity 100

Flags: no_releases no_license

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 5097
  • days_rel: n/a
  • days_push: 119
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

5313 stars · 635 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

A JavaScript library for sanitizing untrusted HTML to prevent XSS attacks using a configurable whitelist of allowed tags and attributes. It works in Node.js and browsers and supports custom filtering functions.

Use cases

  • sanitize user-submitted HTML comments
  • prevent XSS attacks in web apps
  • filter HTML input with a whitelist
  • strip script tags from rich text
  • clean untrusted HTML before rendering

When to choose

  • you need whitelist-based HTML sanitization in Node.js or the browser
  • you want fast, battle-tested XSS filtering with custom tag/attribute handling

When to avoid

  • you need to sanitize non-HTML content like Markdown or CSS
  • you need a full DOM parser or HTML rewriting beyond filtering

Facets

library · maturity stable

security serialization web-framework security web-development backend browser xss html-sanitizer whitelist input-filtering npm nodejs javascript

2 sources

Member repositories

RepositoryRoleHealth v2
leizongmin/js-xssmain69

For agents

markdown · JSON · MCP: product_card(name="leizongmin/js-xss")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem