Escapes string by replacing special symbols with escaped sequences.
These symbols are: '\\' (backslash), '\n' (newline), '\r' (carriage return) and '\t' (tab).
assert("a\\next\nline\top".escapeValue() == `a\\next\nline\top`); // notice how the string on the right is raw.assert("a\\next\nline\top".dup.escapeValue() == `a\\next\nline\top`.dup);
Escapes string by replacing special symbols with escaped sequences. These symbols are: '\\' (backslash), '\n' (newline), '\r' (carriage return) and '\t' (tab).