So I have the following:
<
Use the html tag <br/> to input line endings (your output is interpreted by an html parser), for example:
<br/>
Javascript:
document.write("Hello<br/>World");