So, i have in my database a text for example :
blabla
bloblo
blibli
I can see newlines if i look my text in my database. This text is from a textarea.
I have an Ajax request for get this text from my database.
In my php script, i do : echo json_encode($mytext)
and in my ajax success i have my text in the var data
.
But when i try to display this text data on my page, i loose all new lines. All my text is in on single line.. Any ideas ?