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
My recommendation is to save the data to database with Line breaks instead parsing it with nl2br. You should use nl2br in output not input.
For your question, you can use php or javascript:
PHP:
str_replace('
', "\n", $textarea);
jQuery:
$('#myTextArea').val($('#myTextArea').val().replace(@
@, "\N"));