Usa la funzione apposita

http://www.php.net/manual/it/function.nl2br.php

ciao