YahooArchive/xss-filters
Secure XSS Filters. observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: archived no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4227
- days_rel: n/a
- days_push: 3642
- n_releases_24m: 0
Adoption not part of the score
1070 stars · 135 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A JavaScript library providing context-dependent output filters to prevent cross-site scripting (XSS) attacks. It applies 'just sufficient' encoding based on the HTML5 spec, escaping only the minimal set of characters needed for each output context.
Use cases
- prevent xss attacks in web apps
- sanitize untrusted user input before rendering html
- escape output in javascript templates
- avoid double-encoding of html entities
- securely embed urls in html attributes
- context-sensitive output escaping for handlebars
When to choose
- you need context-aware XSS filtering instead of blind entity escaping
- you want faster output encoding with minimal character escaping
- you use Handlebars templates and want automatic secure escaping
- you need standards-compliant HTML5-based sanitization
When to avoid
- you need a full HTML sanitizer to clean raw HTML input rather than escape output
- you need actively maintained software with recent updates
- your stack requires a license with clear terms
Facets
library · maturity maintenance
security templating middleware security web-development frontend browser xss-prevention output-encoding context-sensitive-escaping html5 handlebars nodejs javascript
1 source
- readme: https://github.com/YahooArchive/xss-filters · fetched 2026-08-28 · b4ea529f8e5d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| YahooArchive/xss-filters | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="YahooArchive/xss-filters")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem