I have a window folder path, example:
var text1 = "C:\Mine\2020\example.txt"
But when I print text1 to console, the result: "C:Mine‚0example.txt"
Note: text1 is information from another place. The above case is just an example.
I tried:
String.raw`${text1}`
The result is still: "C:Mine‚0example.txt"
Only when:
String.raw`C:\Mine\2020\example.txt`
The result is exactly what I need: "C:\Mine\2020\example.txt"
But my input is text1 variable. Is there any way to handle the text1 variable? Thanks for any help!