As parvilno display HTML text via JS in a few lines?

Good afternoon everyone)
I have part of the page is generated via JS in the process of the website.
And often it is necessary to create whole blocks.
Do it using $('#div').html("new DIV") or through a JS analog getElemenById().innerHTML="new DIV"

The question is often this "new DIV" is a lot, and JS does not perceive it as PHP in a few lines.
Is there any way to get around is that JS took the design view:
$('#div').html("<div 1>
 <div 2>

and not only
$('#div').html("<div 1> <div 2> </div> </div>");
June 26th 19 at 13:58
1 answer
June 26th 19 at 14:00
the <div>
Truly all ingenious is simple))) And I am suffering)))) Thank you! - kane.Dibbert87 commented on June 26th 19 at 14:03
: not for that ))) - idella_Stoltenberg2 commented on June 26th 19 at 14:06

Find more questions by tags HTMLJavaScript