I need to set a textarea
value with a paragraph that's coming from a database.
$("#body").val('<%= @letter.body %>');
The code above works when @letter.body
is just simple text, but it fails when there's newlines or anything else fancy in that field. How can I get the whole paragraph to render properly in my textarea, including any newlines, bullets, etc that might be included?