Function js_sys::escape

source ·
pub fn escape(string: &str) -> JsString
Expand description

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

MDN documentation