Is there a way to add new lines in javascript while printing html? So that the printed html is indented.
document.getElementById("id").innerHTML = "<div class="1"><div class="2">hello</div></div>"
Instead I want to something like this:
document.getElementById("id").innerHTML = "
<div class="1">
<div class="2">
hello
</div>
</div>"