title: Using HTML Tidy in Visual C++ 2010 Windows Forms project
body: <p>I am using VC++ 2010 Express and I am attempting to include HTML Tidy to perform cleanup on HTML code strings. What I want to do is process the HTML as a string (NOT from a file) and save the processed cleaned HTML to a string (NOT to a file). The project is a C++ Windows forms project, the compiler is /CLR.</p>
  
  <p>I have attempted, more times than I care to admit, to attach Tidy to my project in various ways. I have failed in every attempt and I'm just not sure where to go from here. The most promising was a .NET wrapper called TidyManaged, but I could not find any documentation to explain how to use it with C++ (it appears to have been meant for C#).  The various C++ wrappers are not working for me at all. It seems the documentation is extremely lacking on how to make them work.</p>
  
  <p>Also I am prepared to accept a solution that does not use tidy at all, but some other equivalent HTML cleanup tool.  I am concerned about the age of Tidy (August, 2000) and whether it is still effective for today's newer XHTML standards.</p>
  
  <p>Also if it's possible, I am willing to incorporate a C library into my code directly without relying on a DLL, but I have no knowledge on how to make this work or even if it can work.</p>
  
  <p>Any suggestions on how to go about this would be greatly appreciated, keeping in mind that this is HTML we are talking about here (often times malformed HTML and XHTML) and NOT XML.</p>
  
  <p>Thanks in advance!</p>
  
  <p>PS - I am new to C++ :/</p>