Oops, misunderstood the question I guess. You can try something like this:
$yourstring = ereg_replace ("\n","\n",$yourstring);
But it turns enter key breaks into \n's as well. I doubt that's what you want. I couldn't think of a way to tell the difference, but this forum seems to be doing it. Anyone know how?