Which is the best HTML tidy pack? Is there any option in HTML agility pack to make HTML webpage tidy?

给你一囗甜甜゛ 提交于 2019-11-28 09:29:50

In Html Agility Pack I could not find any option that make html page tidy.There is one option that inserts the missing closing tags but it works in some html page only.That Option in html agility pack is,

  HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
      doc.OptionFixNestedTags=true;

I have also tried regex for that but it also work for some html page only.

So I found the best html tidy pack is :

http://www.devx.com/dotnet/Article/20505/1763/page/2.

We can see there : how to import the dll and how to use that tidy pack, there is sample code also available. It is great at all.It can insert the missing closing tags and makes your html page tidy .

Thanks for helping everyone..

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!