---
id: "css-escape"
kind: "web-feature"
canonical: "https://timetostable.com/feature/css-escape"
baseline: "high"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# CSS.escape() (`css-escape`)

The CSS.escape() static method escapes a string so that it can be used in a valid CSS selector.

- **Group**: CSS object models
- **Baseline**: Widely Available
- **Newly Available Date**: 2020-01-15
- **Widely Available Date**: 2022-07-15
- **Specification**: https://drafts.csswg.org/cssom-1/#the-css.escape()-method
- **Constituent BCD keys**: 1

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Firefox | 31 | 2014-07-22 |
| Firefox for Android | 31 | 2014-07-22 |
| Chrome | 46 | 2015-10-13 |
| Chrome Android | 46 | 2015-10-14 |
| Safari | 10.1 | 2017-03-27 |
| Safari on iOS | 10.3 | 2017-03-27 |
| Edge | 79 | 2020-01-15 |

