views:

108

answers:

2

I would like to beautify my HTML before it hits the user's browser. Is there any free or open source libraries that do this?

+4  A: 

Here's one: http://tidy.sourceforge.net/

Steven Sudit
It's not easily usable from ASP.NET... the wrapper suggested by ars seems more suitable in that case
Thomas Levesque
@Thomas: I'll upvote ars, then.
Steven Sudit
+4  A: 

You can do this using the Tidy.NET library. Here's a link to a page with some code and explanation:

ars
Your link boils down to http://tidynet.sourceforge.net/, which does seem to be a different project than the one I linked to, although they clearly have common origins.
Steven Sudit
Hi Steven, right -- it's a native implementation of the library you linked for .NET. The C# tag made me think that this implementation might be of use to the questioner.
ars