Känn igen självstängande taggar

Contents
[ ]

HTML kan ha olika taggformatering för tomma taggar som <td></td> eller <td/>. Aspose.Cells stöder båda dessa format. Denna funktion kan testas genom att konvertera den bifogade exempelfilen HTML till Excel-fil. Exempelfilen HTML och utdatafiler kan laddas ner från följande länkar för testning.

Källfilen

Utdatafil

source_directory = "Examples/SampleFiles/SourceDirectory/"
output_directory = "Examples/SampleFiles/OutputDirectory/"
loadOptions = HtmlLoadOptions(LoadFormat.HTML)
# Load the Sample Workbook
workbook = Workbook(source_directory + "sampleSelfClosingTags.html", loadOptions)
# Save the excel file.
workbook.save(output_directory + "sampleSelfClosingTags_out.xlsx")