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
var parser = new HtmlParser();
var document = parser.Parse("");
var sw = new StringWriter();
document.ToHtml(sw, new PrettyMarkupFormatter());
var HTML_prettified = sw.ToString());