Adding New Line characters in email body

Feb 18, 2015 at 10:33 PM
Edited Feb 18, 2015 at 10:34 PM
My code is as follows:
function CreateEmail( )
{
var createEmail = new XrmServiceToolkit.Soap.BusinessEntity("email");
createEmail.attributes["subject"] = subject;
 createEmail.attributes["description"] = "line1" + "\r\n" + "line2";
...

The email is created successfully, but the body of the email is squashed onto 1 line. Does anyone know how to input a new line character to separate lines 1 and lines 2?
Feb 18, 2015 at 10:55 PM
For all those wondering, I have found the answer, just like html, you enclose your paragraphs with <p></p>
so the updated code would be

createEmail.attributes["description"] = "<p>line1</p>"+ "<p>line2</p>";