-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Using doc As Document = Document.FromString(input.Text.Trim())
doc.ShowWarnings = True
doc.Quiet = False
doc.OutputBodyOnly = AutoBool.Yes
doc.ErrorFile = "tidy.txt"
doc.CleanAndRepair()
output.Text = doc.Save()
End Using
When I run this code, the file tidy.txt never gets created. What I'm really after is to use TidyManaged to provide my users with the ability to validate their HTML, and fix it (or accept what HTMLTidy generates), but I need them to see any markup errors in what they've created.
Thus, the ideal would be to get the diagnostic information returned as a String, but I can read it from a file, if need be.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels