It is necessary to parse the text in tags

  • Does the HtmlAgilityPack really "see" the comments, and not miss them? The parser works on DOM where comments are not included for obvious reasons. It seems to me that you cannot do without regulars here. - Bulson
  • Give an example of what you need to parse and what you need to get. - Alexander Petrov

1 answer 1

In theory, comments can be chosen as follows:

htmlDoc.DocumentNode.SelectNodes("//comment()")