invece di
Codice PHP:
echo $stringa
scrivi
Codice PHP:
echo nl2br($stringa);