title: How to parse Html formatted element
body: <pre><code>var div = document.getElementById('test');
  var str = '&lt;p&gt;Just some &lt;span&gt;text&lt;/span&gt; here&lt;/p&gt;';
  var temp = document.createElement('div');
  
  temp.innerHTML = str;
  while (temp.firstChild) {
      div.appendChild(temp.firstChild);
  }
  </code></pre>
  
  <p>string is defined in one line I required in formatted style like below</p>
  
  <pre><code>var str = '&lt;p&gt;
               Just some
               &lt;span&gt;text&lt;/span&gt;
                here
             &lt;/p&gt;';
  </code></pre>
  
  <p>how to pass this string or html content to javscript.. it will be easy to modify..I too lone content to add so asking. </p>