InnerText
public virtual string InnerText { get; }
Gets the text between the start and end tags of the object. InnerText is a member of HtmlAgilityPack.HtmlNode
Example
var htmlDoc = new HtmlDocument();
htmlDoc.LoadHtml(html);
var htmlNodes = htmlDoc.DocumentNode.SelectNodes("//body/h1");
foreach (var node in htmlNodes)
{
Console.WriteLine(node.InnerText);
}
Click here to run this example.