title: "CSS.escape()" date: "2025-03-04" tags: []
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'
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'