Känn igen Självavslutande taggar

Contents
[ ]

HTML can have variety of tags formatting for empty tags like <td></td> or <td/>. Aspose.Cells supports both these formats now whereas earlier it was supporting only <td></td> like tags. This feature can be tested by converting the attached sample HTML file to Excel file. The sample HTML file and output Excel file can be downloaded from the following links for testing.

sampleSelfClosingTags.html

outsampleSelfClosingTags.xlsx

Exempelkod

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// Set Html load options and keep precision true
HtmlLoadOptions loadOptions = new HtmlLoadOptions(LoadFormat.Html);
// Load sample source file
Workbook wb = new Workbook(sourceDir + "sampleSelfClosingTags.html", loadOptions);
// Save the workbook
wb.Save(outputDir + "outsampleSelfClosingTags.xlsx");