I have a textarea and I set its text to a string with \\n in it. I would expect that to represent a line break.
\\n
$(\"#ConfirmEmailText\").text(\
Did you try?
text = text.replace(/(\r\n|\r|\n)/g, '\n');
Or use the DOM structure's .nodeValue property.
EDIT : i may have not been clear. Instead of using innerHTML to set the text try using nodeValue