Skip to main content

escape_string_content

Function escape_string_content 

Source
fn escape_string_content(text: &str) -> String
Expand description

Re-escape text so it can sit between the quotes of a .mos string literal. This inverts the parser’s \\, \", \n, \t, and \r escapes.