Web features explorer

CSS.escape()

Widely available
Tags: api Groups: CSS > CSS object models

The CSS.escape() static method escapes a string so that it can be used in a valid CSS selector. To learn more, see CSS: escape() static method at MDN.

Compatibility