Skip to content

Unable to get diagnostics / ErrorFile #4

@troj

Description

@troj
    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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions