I know when saving a textarea you can use the nl2br() or str_replace to change the /n to br tags etc. However what im not sure about how to insert line breaks into a textare
This works on me.
str_replace(array("\r", "\n"), ' ', $textareavalue);