hai ragione.. asp allroa cosi:

$testo = '

'.$testo.'</p>'
$testo = str_replace('\n','</p>

',$testo);