title: Convert DOM element to Javascript (ES6) template string
body: <p>So, there is a ES6 literal ` - backquote mark to make multiline strings with variables inside, and I need to use it with template, initially described in HTML.</p>
  
  <pre><code>&lt;div id="template"&gt;${value}&lt;/div&gt;
  </code></pre>
  
  <p><strong>JS:</strong></p>
  
  <pre><code>var value = 'Hello, world!'
  
  var template = document.getElementById('template');
  
  // Magic to convert DOM element to template string `&lt;div id="template"&gt;${value}&lt;/div&gt;`
  
  console.log(element)
  
  &gt;&gt;&gt; &lt;div id="template"&gt;Hello, world!&lt;/div&gt;
  </code></pre>
  
  <p>So, I need something in "Magic" line)</p>