Back to TIL
March 2025
posted on 03.04.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

in Naperville, IL
Last visitor from Mitaka, Japan