HtmlAgilityPack select only inner text Node
<p>This is my sample html input part of bigger html file.</p>

<pre class="lang-cs prettyprint-override"><code>string html = "&lt;html&gt; &lt;p&gt;Ingredients:&lt;/p&gt; &lt;/html&gt;";
</code></pre>

<p>I want to retrieve only node having inner text <strong>Ingredients</strong>.
 <strong>Ingredients</strong> may come in html node p, div, strong etc.</p>

<p>My c# code to achieve this using HtmlAgility pack and linq is</p>

<pre class="lang-cs prettyprint-override"><code>HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
doc.LoadHtml(html);

List&lt;HtmlNode&gt; ingredientList = doc.DocumentNode.Descendants().Where
                        (x =&gt; x.InnerText.Contains("Ingredients:")).ToList();
</code></pre>

<p>Result of this code gives me 3 nodes</p>

<pre><code>&lt;html&gt; node
&lt;p&gt; node
#text node
</code></pre>

<p>I want retrieve only </p>

<pre><code>&lt;p&gt; node
</code></pre>