Skip to main content

escape

Function escape 

Source
pub fn escape(s: &str) -> String
Expand description

s as the inside of a JSON string literal (RFC 8259 §7): quote, backslash and every control character escaped.