C# version of HTML Tidy?

前端 未结 5 507
隐瞒了意图╮
隐瞒了意图╮ 2020-12-09 06:06

I am just looking for a really easy way to clean up some HTML (possibly with embedded JavaScript code). I tried two different HTML Tidy .NET ports and both are throwing exce

5条回答
  •  醉梦人生
    2020-12-09 06:39

    The latest C# wrapper for HTML Tidy was done by Mark Beaton, which seems rather more up-to-date than the links you've referenced (2003). Also worth of note is that Mark provides executables for referencing as well, rather than pulling them from the official site. That should do the trick of nicely organising and validating your HTML.

    • TidyManaged (source)
    • TidyManaged/libtidy builds

提交回复
热议问题