[][src]Function js_sys::escape

pub fn escape(string: &str) -> JsString

The escape() function computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.

MDN documentation