Escapes CSS identifier accordingly to the rules defined for CSS.escape() utility method.
Can be applied to CSS values as well, although it escapes characters that don't strictly need to be escaped.
A escapeCSSVal is a better alternative for that.
Parameters
text: string
A text to escape.
Returns string
A string safe to be used as CSS identifier, e.g. as CSS selector.
Escapes CSS identifier accordingly to the rules defined for CSS.escape() utility method.
Can be applied to CSS values as well, although it escapes characters that don't strictly need to be escaped. A escapeCSSVal is a better alternative for that.