If I have a block of HTML with many tags, how do insert it in JavaScript?
var div = document.createElement(\'div\'); div.setAttribute(\'class\', \'post block
If you are using on the same domain then you can create a seperate HTML file and then import this using the code from this answer by @Stano :
https://stackoverflow.com/a/34579496/2468603