title: Iterate with all elements and get text?
body: <p>I am using the follow code to get all text from a page into a <code>List&lt;string&gt;</code></p>
  
  <pre><code>HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
  doc.LoadHtml(content);
  
  foreach (var script in doc.DocumentNode.Descendants("script").ToArray())
      script.Remove();
  
  foreach (var style in doc.DocumentNode.Descendants("style").ToArray())
      style.Remove();
  
  foreach (HtmlAgilityPack.HtmlNode node in doc.DocumentNode.SelectNodes("//text()"))
  {
      string found = WebUtility.HtmlDecode(node.InnerText.Trim());
      if (found.Length &gt; 2) // removes some unwanted strings
          query[item.Key].Add(found);
  }
  </code></pre>
  
  <ul>
  <li>But some html is still going into the string such as <code>&lt;/form&gt;</code> is
  there a better way to narrow this code so I get only the text of each
  tag and nothing else or I will have to still parse the results to
  remove &lt;*> tags ?</li>
  </ul>