@std/data/quote.ms#
Import each required symbol with import Name from "@std/data/quote.ms".
quote_text Function#
Wraps text in double quotes and escapes it the way JSON does. A control character
below U+0020 gets its short JSON escape where one exists, otherwise \uXXXX. U+007F is
always escaped as \uXXXX. Pass escape_c1: true to escape U+0080 to U+009F too.
Manuscript
fn quote_text(text String, escape_c1 Bool = false) String { ... }