Hi,
I have a form with a textarea field with:
11111
22222
33333
in it.
After a query the content is stored (blob field) like:
11111
22222
33333
which is fine.
The trouble is, the content retrieved is displayed in the source code of the page as:
11111
22222
33333
which is not fine, because using that result in a javascript function, i need the result to be in one line in the source code, example:
this result:
11111
22222
33333
needs to be in the source code like this:
11111<BR>22222<BR>33333333<BR>
in one line
the following doesnt work:
$note="1111111
222222
33333
";
$note=str_replace("\n", "<br />", $note);
echo "$note";
it adds the <br />'s but the return stays!
also tried 'nl2br', yet adds the <br />'s but the returns on the source code stays!
i dont know, perhaps modifying the textfield content BEFORE the query?
transforming: 11111
22222
33333
into: 11111<BR>22222<BR>33333<BR> ?
Any?😕