e così??

$stringa=str_replace("\r\n\r\n","

</p>",$stringa);
$stringa=str_replace("\r\n","
",$stringa);