|
Posted by Ciaran on 02/28/07 14:30
Thanks for the reply Hendri. I got it sorted out using a simple find
and replace I found by searching for nl2br thanks to your second
post.
Converting textarea line breaks to <br> in PHP
$result = str_replace(array("\r\n", "\r", "\n"), "<br />",
$thestring);
Converting <br> to textarea line breaks in PHP:
$result= str_replace(array("<br/>", "<br>", "<br />"), "\n",
$thestring);
Hope this helps someone,
Ciarán
[Back to original message]
|