How do I get a CR/LF when setting textContent?
I've tried a couple things (below) but these do not work. The \r\n
has no effect, the <br />
is displayed literally.
document.getElementById("lbResult").textContent = "\r\nmyID"
document.getElementById("lbResult").textContent = "<br />myID"