title: textContent() without spaces from formatting text
body: <p>I have an html like this:</p>
  
  <pre><code>&lt;div id="info"&gt;
      &lt;h1&gt; My title &lt;/h1?
      &lt;div&gt;
          &lt;p&gt; Here is a text and one paragraph &lt;/p&gt;
          &lt;p&gt; Another paragraph &lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I would like to take the inner text without the tags from the whole div#info. So I use this:</p>
  
  <pre><code>document.querySelector('div#info').textContent
  </code></pre>
  
  <p>And the results have some spaces like this:</p>
  
  <pre><code>"
      My title
  
  
  
  
  Here is a text and one paragraph
  Another Paragraph
  
  
  
  
  "
  </code></pre>
  
  <p>Any idea if there is any command which could give the result to so one line like this:</p>
  
  <pre><code> "My title Here is a text and one paragraph Another Paragraph"
  </code></pre>
  
  <p>I tries also the <code>innerText()</code> but it has again spaces.</p>