Free Support Forum - aspose.com

Text extracted from body of EML files includes undesired HTML text

Hi there,

Using Aspose.Email version 19.11, I’ve discovered that the text extracted from EML files is rendering as HTML (tags being printed into the string) rather than as plaintext.

I’ve attached screenshots of the sample code to verify the issue on my end.

Any suggestions or help would be greatly appreciated. Thank you!GetHTMLBodyAsPlainText.PNG (72.4 KB)
ReadEmbeddedEmailAttachmentsFromMessage.PNG (74.9 KB)

@epiqjdev,

I have observed the information shared by you and request you to please first try using latest Aspose.Email for Java 19.12 on your end. In case there is still an issue then please share the source file and generated output put with along with sample code.

@mudassir.fayyaz,

Thank you for your reply! I believe I have resolved my issue by programmatically determining which types of bodytext are extractable at runtime: HTML, RTF, and plain-text (in that order).

I’ll let you know if I have any other issue regarding this subject. Thanks for your attention to my report!

@epiqjdev,

It’s good to know things are resolved on your end. Please feel free to share if there is any further, I may help you in this regard.