EscapeString extension

Provides an escape extension method on String.

on

Methods

escape({QuoteType quotes = QuoteType.single, bool ascii = true}) String
Escapes a String such that it can be used as a string literal in generated code.