Cheerio: How to select element by text content?
<p>I have some HTML like this:</p>

<pre><code>&lt;span id="cod"&gt;Code:&lt;/span&gt; &lt;span&gt;12345&lt;/span&gt;
&lt;span&gt;Category:&lt;/span&gt; &lt;span&gt;faucets&lt;/span&gt;
</code></pre>

<p>I want to fetch the category name ("faucets").
This is my trial:</p>

<pre><code>var $ = cheerio.load(html.contents);
var category = $('span[innerHTML="Category:"]').next().text();
</code></pre>

<p>But this doesn't work (the <code>innerHTML</code> modifier does not select anything).</p>

<p>Any clue?</p>