- . text(). text() contains() , , , :
doc.DocumentNode.SelectNodes("//*[contains(., 'John had three apples')]");
contains(., '...') , . , -, XPath , , :
<span>John had <br/>three <strong>apples</strong></span>
, XPath , node, , :
doc.DocumentNode.SelectNodes("//*[text()[contains(., 'John had three apples')]]");
, HTML, , , , .