.NET version of HTML Tidy?

本秂侑毒 提交于 2020-01-15 06:30:12

问题


Does anyone know if there's a native port of HTML Tidy available for .NET? In Sourceforge, there's a TidyNet project - which hasn't been updated since 2005 and seems like a wrapper only. Java port seems to exist as recent JTidy project.

HTML Tidy project page: http://tidy.sourceforge.net/


回答1:


You are right, the Tidy.NET hasn't been updated in a while.

An alternative is TidyForNet Links on that page to the source code in SVN.

"This wrapper is based upon a wrapper provided by Adrian Bateman

The key advantage of this .NET and Wrapper is that it directly binds into the original HTML Tidy library, which is written in C. It then exposes a .NET class that can be consumed by any .NET application. By directly binding to the original HTML Tidy sources, incorporating updates in the original HTML Tidy program is merely a matter of updating source files.

However, due to the lack of C++.NET support on the Linux platform, the wrapper itself has been rewritten in C# and now uses P/Invoke calls to access the HTML Tidy library. HTML Tidy itself, of course, is not re-written in C#, and at all times the latest version can be obtained by merely updating the sources."



来源:https://stackoverflow.com/questions/1824745/net-version-of-html-tidy

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