title: Cheerio: Extract Text from HTML with separators
body: <p>Let's say I have the following:</p>
  
  <pre><code>$ = cheerio.load('&lt;html&gt;&lt;body&gt;&lt;ul&gt;&lt;li&gt;One&lt;/li&gt;&lt;li&gt;Two&lt;/li&gt;&lt;/body&gt;&lt;/html&gt;');
  
  var t = $('html').find('*').contents().filter(function() {
    return this.type === 'text';
  }).text(); 
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>OneTwo
  </code></pre>
  
  <p>Instead of:</p>
  
  <pre><code>One Two
  </code></pre>
  
  <p>It's the same result I get if I do <code>$('html').text()</code>. So basically what I need is to inject a separator like <code></code> (space) or <code>\n</code></p>
  
  <p>Notice: This is not a jQuery front-end question is more like NodeJS backend related issue with Cheerio and HTML parsing.</p>