On RZ, if you end a line with the enter key while posting, it'll automatically make a <br /> of it.
How do they does vB do that?
I've tried nl2br but that requires the use of '\n' anyway.
Thanks,
~Elite.
Printable View
On RZ, if you end a line with the enter key while posting, it'll automatically make a <br /> of it.
How do they does vB do that?
I've tried nl2br but that requires the use of '\n' anyway.
Thanks,
~Elite.
$str = preg_replace("/\n/", "<br/>", $str);
does \n automatically get generated in a <textarea> when you insert it in a DB?
EDIT:
It worked !
Yay, thanks ! :p
$str = nl2br($str);
Pieman, your evil ideas kills me.
Yep, should do the same. And yes, the browser inserts a \n character for each new line.