开发者

Solutions for tidying HTML in .NET [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

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 question

Do 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜