Board index » Web Programming » Escaping escape characters in JScript
|
DoBBs
|
Escaping escape characters in JScript
Web Programming261
Hi, I have been getting hopelessly confused with escaping escape characters in JScript! All I want to do is write a simple funtion: function DoubleUpBackSlash(inputString) { ??????? } which will do the following: <% var inputString = "D:\Internet\test2.txt" Response.Write(DoubleUpBackSlash(inputString)); %> ...printing out the following on the screen: D:\\Internet\\test2.txt Can anyone fill in the blanks in the function for me? TIA, JON - |
