rixx on Nostr: #python people: Library recommendations for parsing/validating/cleaning CSS? I've ...
#python people: Library recommendations for parsing/validating/cleaning CSS?
I've been using cssutils so far, but there seems to be no hope of CSS3 landing (I really want nesting, but the library won't even add new properties to its parser, so slim chance of that).
Use case is to take user-provided CSS, validate it against a set of rules (allowed keywords/values/properties), in order to safely use it on public websites.
Published at
2025-01-09 13:36:18 UTCEvent JSON
{
"id": "8ec57033c3c2a37e89358ff0ff314652306b4108d9396babd5fe446aa0a916b3",
"pubkey": "638728c3bfbf072aad5a5ad85ce122f66e630e215b614f4acb16088257ddec7d",
"created_at": 1736429778,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"proxy",
"https://chaos.social/users/rixx/statuses/113798661931816457",
"activitypub"
]
],
"content": "#python people: Library recommendations for parsing/validating/cleaning CSS?\n\nI've been using cssutils so far, but there seems to be no hope of CSS3 landing (I really want nesting, but the library won't even add new properties to its parser, so slim chance of that).\n\nUse case is to take user-provided CSS, validate it against a set of rules (allowed keywords/values/properties), in order to safely use it on public websites.",
"sig": "f0e384bc8ef52cedd603da0b323e35a03aea5b88b72bb86126701488b2af899649c6cdb9fa8672d97bc79dbb1e0ad41e869405489e740004f823f005bcb82c09"
}