Brian V Bonini wrote:
So just change it....

$string = nl2br($content->page_content);
$string = eregi_replace("<br />", "<br>", $string);


Why not directly str_replace(array("\r\n","\r","\n"), '<br>', $content->page_content);

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to