I\'m trying to get all the divs that their class contains a certain word:
content1
As of version v1.6.5 of Html Agility Pack, it contains .HasClass("class-name") extension method.
.HasClass("class-name")
IEnumerable nodes = htmlDoc.DocumentNode.Descendants(0) .Where(n => n.HasClass("class-name"));