public string Convert(string html) { var cleaner = new Cleaner(); html = cleaner.PreTidy(html); HtmlDocument doc = new HtmlDocument(); doc.LoadHtml(html); var root = doc.DocumentNode; string result = this.Lookup(root.Name).Convert(root); return result; }