title: Get text in parent without children using cheerio
body: <p>I am trying to extract just the content of a div - without any of the children of that div - using cheerio.  If I just use div.text() - I get all the text - parent and children.  Here's the HTML - I just want the value "5.25"</p>
  
  <p>The code below currently returns "Purchase price $5.25"</p>
  
  <p>The HTML below:</p>
  
  <pre><code>&lt;div class="outer tile"&gt; 
      &lt; ... various other html here &gt; 
      &lt;div class="cost"&gt;
          &lt;span class="text"&gt;Purchase price &lt;/span&gt;
          &lt;small&gt;$&lt;/small&gt;5.25
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>with the extract of the relevant node.js CHEERIO code below:</p>
  
  <pre><code>var $ = cheerio.load(data);
  $("div.outer.tile").each(function(i, e) {
    var price = $(e).find('div.price');
        console.log(price.text());
  });
  </code></pre>