Disable Downlevel Revealed Comments while saving to HTML

Disable Downlevel Revealed Comments while saving to HTML

When Excel file is converted to HTML, Aspose.Cells adds Downlevel-revealed conditional comments in the output HTML file. These conditional comments are mostly relevant to old versions of Internet Explorer and are irrelevant in the 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 in the output HTML file.

The following image shows the Downlevel-revealed conditional comments which will be removed in the output HTML file

todo:image_alt_text

Sample Code