Skip to main content

escape_single_quotes

Function escape_single_quotes 

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

Escape single quotes for safe embedding in shell single-quoted strings.

Replaces each ' with '\'' (end quote, escaped quote, begin quote).