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

Free Support Forum - aspose.com

Technical - HTML comments are not saved when converting to DOC

Hi.

I am testing out the ASPOSE Words dll for C#. Specifically I am trying to convert HTML documents to DOC and then back to HTML. The problem I am seeing is that HTML documents that contain comments or our own pseudo tags are getting stripped off. We were hoping to replace Word Automation with your product in order to process the millions of documents we have currently and would much appreciate your help in solving this issue.

Examples of tags are:-

The rule we need to keep is that these comments must be preserved in the document as text. Is there any way we cna get this working with your code?

Thank you.

TheUnknowndotnet


This message was posted using Aspose.Live 2 Forum

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Upon importing HTML all comments in HTML documents are ignored. I think, you can just find your comments in your source HTML document, using Regular expression for example, save them somewhere and then just insert them back into the output HTML document.

Please let me know if you need more assistance, I will be glad to help you.

Best regards.