$string = "hello bob, end line <br> More text";
$string = ereg_replace("<br>" , "\n" , $string);
If I understood you right, you changed the \n with <br> in a string inputted by a user and now you want to change it back to display it in a text box. I think thats how you do it.