Back to TIL
March 2025
posted on 03.03.2025

CSS.escape()

CSS.escape() returns an string that conforms to the CSS selector specs. Useful when generating dynamic CSS selectors based on an input.

CSS.escape("app:@org/name");
// 'app\\:\\@org\\/name'
No reactions yet

2026.10.01 14:01:34 in Naperville, IL
Last visitor from Mitaka, Japan
Theme
Color theme
⌘K