fn escape_snippet_bits(text: &mut String)Expand description
Escapes \ and $ so that they don’t get interpreted as snippet-specific constructs.
Note that we don’t need to escape the other characters that can be escaped, because they wouldn’t be treated as snippet-specific constructs without ‘$’.