1👍
✅
first of all i would recommend you to use backticks
var html = `
<div>
<span>Some HTML here ${some_var}</span>
</div>
`;
this saves you time and effort, and you can then insert variable wherever you want
also check this thread
Source:stackexchange.com