We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

File conversion to html with wrong span added

We are processing the file from the archive attached using Aspose 21.6.0 and the following code:

var options = new HtmlSaveOptions
	ExportImagesAsBase64 = true,
	ExportSingleTab = true,
	IsExportComments = false,
	ExportHiddenWorksheet = false,
	HiddenRowDisplayType = HtmlHiddenRowDisplayType.Remove,
	HiddenColDisplayType = HtmlHiddenColDisplayType.Remove,
	ExportGridLines = true

using (var wb = new Workbook(inputFile))
	wb.Save(targetPath, options);

For each cell content zero-width characters are added to left and right side of the text. No exception is thrown at conversion, but a non-expected span tag ("<span style=‘display:none’>") is added for some cells(e.g. B3, B9 etc.), between of that zero-width characters. That span should’t be added.

Obs. There are many content cells with zero-width characters that are written correctly, without that extra span.
AsposeIssue.zip (24.8 KB)



Please notice, I am able to reproduce the issue as you mentioned by using your template file. I found some wrong “<span>” added in Excel to HTML conversion. I have logged a ticket with an id “CELLSNET-48191” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.

Please try our latest version/fix: Aspose.Cells for .NET v21.6.7 (attached)
Aspose.Cells21.6.7 For .Net2_AuthenticodeSigned.Zip (5.5 MB)
Aspose.Cells21.6.7 For .Net4.0.Zip (5.5 MB)
Aspose.Cells21.6.7 For .NetStandard20.Zip (5.6 MB)

Your issue should be fixed in it.
Let us know your feedback.

The issues you have found earlier (filed as CELLSNET-48191) have been fixed in this update. This message was posted using Bugs notification tool by simon.zhao