I have got a little problem.
I get a String back in a JSON response which has control characters(\n) in it.
"ClData":" stream TV and films online. O\u0027Dwyer is accused of being the administrator of the site. \n\nStudent O\u0027Dwyer was arrested on 23 May and spent the night in custody, before his aunt posted bail of £3,000."
Now when I use
console.log(root.CatLong.ClData)
I get formatted text back in the console.
But if i use
content.innerHTML = root.CatLong.ClData
It displays it without the "\n" but completly unformatted.
Is the error on my side or is .innerHTML just not capable of interpreting control characters.
Thanks in advance Max
thanks for your help :) – Mar 14 '13 at 12:46