Hello guys,
I have in my database TEXT field with some textual data which have ENTER's and it is written like this:
First Sentence...
Second Sentence...
Third Sentence...
I need this to be writen like this:
First Sentence...<br>Second Sentence...<br>Third Sentence...
Note: String Function nl2br() doesn't help me because it adds <br /> but structure of text is not in one continuous row.
I need my text in only one row because it is written in HTML HIDDEN field (don't ask why) and if I have something like bellow I will have JavaScript error after performing nl2br() !
hidden.value='First Sentence...
<br />Second Sentence...
<br />Third Sentence...'
You see? Structure remains in 3 rows and this is resulting in JS error.
Help please. Any clues?