Riconoscere i tag di chiusura automatica

Contents
[ ]

HTML può avere una varietà di tag formattati per tag vuoti come <td></td> o <td/>. Aspose.Cells ora supporta entrambi questi formati mentre prima supportava solo <td></td>come i tag. Questa funzione può essere testata convertendo il file di esempio HTML allegato in un file Excel. Il file di esempio HTML e i file di output possono essere scaricati dai seguenti collegamenti per il test.

sampleSelfClosingTags.html

outsampleSelfClosingTags.xlsx

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