开发者

.NET version of HTML Tidy?

开发者 https://www.devze.com 2022-12-13 09:47 出处:网络
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 200开发者_Python百科5 and seems like a wrapper

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 200开发者_Python百科5 and seems like a wrapper only. Java port seems to exist as recent JTidy project.

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


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

0

精彩评论

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

关注公众号