📅  最后修改于: 2022-03-11 15:03:17.299000             🧑  作者: Mango
ConverterProperties properties = new ConverterProperties();
properties.SetTagWorkerFactory(new CustomTagWorker());
IList elements = HtmlConverter.ConvertToElements(html, properties);
foreach (IElement element in elements)
{
document.Add((IBlockElement) element);
}
document.Close();