meglio nl2br che str_replace, credo... più rapida.