is there a way to escape all characters in a string. I know that using
but what if I have string in a variable read from a file...
var input;
and want to escape all the characters?
Code:
@"string \n with \t escape characters"
var input;
and want to escape all the characters?