C# HTMLAgilityPack HTML to Text - Parse Errors -


I need to remove the text from the C # from the HTML file. I'm trying to use HTMLAgilityPack but I'm seeing some parse errors (tags are not closed) I'm using these two options:

  htmldoc.OptionFixNestedTags = True; Htmldoc.OptionAutoCloseOnEnd = True;  

Is there any "fix all" type option? I do not care about errors, I just want to close the content or shut down.

Perhaps this is an alternative solution but once I have been used again to remove text from HTML Was:

  result = regesx Replay (result, @ "& lt; (. | \ N) * ??";;; '; string; api;); Results = Reggae Replace (results, @ "^ \ n *", string.opti, reggax option. Sinylline | regexops. Ignorecase); Results = Reggae Replace (results, @ "\ n * $", string.opti, regedx option. Sinylline | regexops. IgnoreCase); Results = Results Change ("\ n", "");  

Comments