cssesc

A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.

cssescapeidentifierstringtool

https://mths.be/cssesc