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

consulta un po' qui