web_sys::css
pub fn escape(ident: &str) -> String
The CSS.escape() function
CSS.escape()
MDN Documentation
This API requires the following crate features to be activated: css
css