Skip to main content

escape_string

Function escape_string 

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

Escapes a string value for embedding in a PromQL double-quoted string literal. This is the inverse of unquote_string — it re-escapes backslashes and double quotes.