leizongmin

leizongmin/js-css-filter

CSS白名单过滤器

JavaScript
29
11
MIT License

`cssfilter` is a lightweight JavaScript library that sanitizes untrusted CSS by allowing only a predefined whitelist of properties and values (via exact matches, regular expressions, or custom functions). It protects developers—especially those building web applications, widgets, or CMS plugins—from CSS‑based XSS attacks and injection when rendering user‑generated styles. The library can be used both as a simple npm package and as a configurable filter for any HTML or CSS processing pipeline.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

leizongmin's profile
leizongmin
45 contributions
greenkeeperio-bot's profile
greenkeeperio-bot
2 contributions
jiangminbai's profile
jiangminbai
2 contributions
makhnatkin's profile
makhnatkin
2 contributions
aSapien's profile
aSapien
1 contributions
mjlescano's profile
mjlescano
1 contributions
renovate-bot's profile
renovate-bot
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet