Hi Mohammad
I think that the problem here is likely to be the way that HTML processes
whitespace: by default, all the different types of whitespace are merged
together as spaces (even newlines!).
If you want to see the full string, try either putting it in a pre tag or a
textarea. For example:
If in a browser console (FF and Chrome, press F12 and see the console)
enter the below JavaScript code it will work
a= "One"
b="Two"
s="\n"
y=a + s +b
then you get
a="One"
"One"
b="Two"
"Two"
s="\n"
"
"
a+s+b
"One
Two"
Note the two line text in the output. That means the "\n" treated as a
l
2 matches
Mail list logo