I am desperately trying to update a textarea with Ajax:

application.js:

```
$("#invoice_project_id").change(function() {
    var value=$(this).val();
    $.get('/invoices/get_recipient', {project_id= : value}  function(response) {
        $('#invoice_recipient').val(response);
    })
});​

```

get\_recipient.js:

```
$('#invoice_recipient').val("<%= @recipient %>");

```

The code stops working when a value that contains line breaks is being inserted into the textarea.

For example, I get this on my console when inserting a simple one liner value:

```
$('#invoice_recipient').val("123 Evergreen Terrasse");

```

Which is correct and works perfectly.

But, when trying to insert a value that contains a line break, I get this on my console:

```
$('#invoice_recipient').val("65341 Bruen Brooks
East Charityville"); 

```

(Note the line break after `Brooks` that probably causes JavaScript to terminate the code.)

Is there any way to fix this, perhaps by removing the line breaks from the values?