Content inside the
tag should not be considered HTML.
In fact, the point of
tag is so that it does display formatted text.
Using the innerText property is the correct way to modify the content of a
tag.
document.getElementById("putItHere").innerText = "first line\nsecond line";