Skip to content

TidyManaged not releasing libtidy.dll #9

@paully21

Description

@paully21

Even if I use TidyManaged.Document in a using block, the handle to libtidy.dll is not released.

I am using this on an Azure website and when I try to publish the site, I get an error that the file libtidy.dll is locked by an external process.

Here is a code snippet of our usage

using (Document doc = Document.FromString(body))
{
doc.ShowWarnings = false;
doc.Quiet = true;
doc.OutputXhtml = true;
doc.IndentBlockElements = AutoBool.Yes;
doc.IndentAttributes = false;
doc.IndentCdata = true;
doc.AddVerticalSpace = false;
doc.WrapAt = 120;
doc.DocType = DocTypeMode.Omit;
doc.OutputBodyOnly = AutoBool.Yes;
doc.PreserveEntities = true;
doc.CleanAndRepair();
model.Body = doc.Save();
model.Status = "Success";
return Json(model);
}

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