[Answered ]-To insert elements into the javascript input box

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

Creating multiline strings in JavaScript

Leave a comment