potresti provare cosi:

$testo = str_replace('\n','

</p>',$testo);

fammi sapere

ciao ciao

igor