Disable Downlevel Revealed Comments while saving to HTML

Disable Downlevel Revealed Comments while saving to HTML

When an Excel file is converted to HTML, Aspose.Cells adds Downlevel-revealed conditional comments to the output HTML file. These conditional comments are mostly relevant to old versions of Internet Explorer and are irrelevant in modern browsers. For additional information on Downlevel-revealed conditional comments, please visit the following link:

Conditional comment - Downlevel-revealed conditional comment

To remove Downlevel-revealed conditional comments, Aspose.Cells provides the HtmlSaveOptions.DisableDownlevelRevealedComments property. Setting the HtmlSaveOptions.DisableDownlevelRevealedComments property to True will remove the Downlevel-revealed conditional comments from the output HTML file.

The following image shows the Downlevel-revealed conditional comments that will be removed from the output HTML file:

todo:image_alt_text

Sample Code