Data from MySql. I used nl2br() for line breaks, but wanted paragraph breaks.
I wrote
function test($text) {
$text = ereg_replace("\n", "<p> ", $text );
return $text ;
}
That worked but my editor wants indents not spaces between paragraphs. I thought
function test($text) {
$text = ereg_replace("\n", "<br / ><I want to print a blank space here> ", $text );
return $text ;
}
But can't figure out how to do that. Any Ideas?
Thanks