Kendiliğinden Kapanan Etiketleri Tanıyın

Contents
[ ]

HTML, \ gibi boş etiketler için çeşitli etiket biçimlendirmesine sahip olabilir</td> veya <td/>. Aspose.Cells şu anda bu biçimlerin her ikisini de desteklerken daha önce yalnızca \ destekliyordu.</td> etiketler gibi. Ekteki örnek HTML dosyası Excel dosyasına dönüştürülerek bu özellik test edilebilir. Örnek HTML dosyası ve çıktı Excel dosyası test için aşağıdaki linklerden indirilebilir.

sampleSelfClosingTags.html

outsampleSelfClosingTags.xlsx

Basit kod

// 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");