Skip to main content

yaml_escape_double_quoted

Function yaml_escape_double_quoted 

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

Escape a string for use as a YAML double-quoted scalar.

Per the YAML 1.2 spec, double-quoted scalars must escape " and \, and any control character (including newline, tab, carriage return) must be represented via an escape sequence rather than embedded literally.