If you want to join using newline characters, just do:
lines.join("\r\n");
But if you want to display on the HTML page, you’d want to wrap each line in <p></p> tags:
html = "<p>" + lines.join("</p><p>") + "</p>";
If you want to join using newline characters, just do:
lines.join("\r\n");
But if you want to display on the HTML page, you’d want to wrap each line in <p></p> tags:
html = "<p>" + lines.join("</p><p>") + "</p>";