escapeHeaderValueForDoubleQuotes static method
Escape valore per uso dentro doppie virgolette in shell (-H "...").
Implementation
static String escapeHeaderValueForDoubleQuotes(String value) {
return value.replaceAll(r'\', r'\\').replaceAll('"', r'\"');
}