Ignoring parsing errors in the Html Agility Pack?

I am trying to parse one page from YouTube ... Which actually does not contain syntax errors. The Html Agility Pack screams about these errors and returns nothing as a result.

http://codepaste.net/gh3hco

+1
source share
1 answer

I have not tried this, but based on the suggestion in their forum, you can use Tidy HTML or Tidy.NET to clear the HTML first. If you wish, you can find the erroneous tags and remove them at the stage of the preliminary process.

+1
source

Source: https://habr.com/ru/post/1758661/


All Articles