In c# and ruby and many other languages you can denote a string as to not need escaping. in c# its like this
This will work as long as you don't throw a \x into the string!
\x
var str = String.raw`\whatever\this\is`; console.log(str);