Covert HTML to Plain Text

I’m using the Email Reader snap and finding that the messages that it is pulling only have an htmlBody and no textBody. I need the messages properly formatted in plane text. Does SnapLogic have an easy way to do this?

I have found and worked with several RegEx’s to strip out the HTML tags but the format that is left is not the same in most cases and can make the plane text messy.

Other options?

Hi Drew,

In the new release there is a simple way to encode or decode strings into and from HTML entities with HTML.encode()/decode() functions.


1 Like