std::core::string

escape

fn String String.escape(String s, Allocator allocator, bool strip_quotes = true)
Escape a string by adding quotes and converting special characters to escape sequences.

Parameters