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(\
try
text = text.replace("\n","");