Solutions for tidying HTML in .NET [closed]
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
开发者_运维问答 Improve this questionDo people think there is any need of a good analogue of HTML Tidy for .NET?
I am looking to create a product that will do things like filter HTML syntax for documents, performing various tasks, such as: cleaning up HTML generated by MicroSoft Word, converting HTML to XHTML, stripping out certain elements, etc.
What other possible common functions would be expected from an HTML tidier?
I haven't tried any of these, but there are a couple of links here: http://tidyfornet.sourceforge.net/
Let us know what kind of success you have with any of them. This is a good question to know the answer to.
You can achieve some cleanliness by using the built-in HTML formatting tool in Visual Studio.
http://weblogs.asp.net/scottgu/archive/2006/07/07/Tip_2F00_Trick_3A00_-Custom-formatting-HTML-in-Visual-Web-Developer-and-Visual-Studio-2005.aspx
I had used LINQ to XML with connection to HTMLAgilityPack
for importing HTML into a WPF application which in turn reads specific information from a HTML file.
You may use it to perform the corrections in formatting or highlighting the HTML syntax. You can find more information about Html Agility Pack on Codeplex.
精彩评论