SkillAgentSearch skills...

CSS.escape

A robust polyfill for the CSS.escape utility method as defined in CSSOM.

Install / Use

/learn @mathiasbynens/CSS.escape
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

CSS.escape polyfill Build status Code coverage status

A robust polyfill for the CSS.escape utility method as defined in CSSOM.

For a more powerful alternative, consider using cssesc, which automatically takes care of excessive whitespace, and has many options to customize the output.

Installation

In a browser:

<script src="css.escape.js"></script>

Via npm:

npm install css.escape

Then, in Node.js:

require('css.escape');

Author

| twitter/mathias | |---| | Mathias Bynens |

License

This polyfill is available under the MIT license.

View on GitHub
GitHub Stars500
CategoryDevelopment
Updated1mo ago
Forks25

Languages

JavaScript

Security Score

95/100

Audited on Feb 3, 2026

No findings