I have a textarea inside a form. No wrap in the html code is provided. In the php file (forms action=phpfile.php) I get the value of the textarea like so:
$ad_text=wordwrap(nl2br($_POST['annonsera_text']), 47, '<br>', true);
echo $ad_text;
Then the output is:
hellohellohellohellohellohellohellohellohellohe
llohello.
hi.
hi.
hi.
/> hi.
hi.
hi.
hi.
/>
and the original input in the form textarea is like this:
hellohellohellohellohellohellohellohellohellohe
llohello.
hi.
hi.
hi.
hi.
hi.
hi.
hi.
There seem to be a line break after the third \n or so, followed by a '/>'
Any ide why?
Thanks