Converting Rich Text to HTML

I,
I work with the latest version of Aspose Total. Is there a function that converts rich text to html?
I need to do that to show rich text parts of some emails in an html page of a web mail site.
Thanks!

Hi there,
Thanks for your inquiry.
You can easily achieve this using Aspose.Words. Please see the code below:

Document doc = new Document("Input.rtf");
doc.Save("Output.html");

Also note that if you are working with your RTF and HTML content in memory you can wrap the input/output text in MemoryStream objects instead and pass them to the Document constructor and Save method. This would avoid the need to save anything to disk.
Thanks,

Thank you!
Have a nice day,

Hello. If RTF contains embeded images, are the images exported somehow as well?

Hi LucasM,
Yes, images are also supported in RTF to HTML or RTF to any supported format. In case of RTF to HTML, you can also export images as base64.
Please feel free to contact us in case you have further comments or questions.
Best Regards,