Peter Mekhaeil

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'