I am trying to pull out some data from the database and print the result inside a JavaScript.
When the user populate the database, I convert all the linebreaks to <br> tags, but when I print them inside the javascript it makes the br but in the source there are still newlines, eg source:
line1
<br>line2
<br>line3
and so on.
This messes up the javascript, how can I get the string printed on one line like
line1<br>line2<br>line3
regards Thomas