IMAP sensor - Custom attribute

I’m trying to add a custom field in my IMAP sensor but so far no luck. I would like to strip HTML tags in the emails.

Are you exceeding the event’s size limit? This causes the event to not be posted to the event bus. Any event-trigger-based content sensor won’t update with the data from that email, because there isn’t an event…

It might be helpful if you provide a more detail description of what is or is not happening.

I’m trying to get the raw text of the email so it is easier to parse. I setup an IMAP sensor with the above template. When an email comes in the custom attribute is filled but it is just a duplicate of the text attribute. It fails to strip the tags off the html

Ever figure this out? I am currently looking to do exactly this…

Not in home assistant but I was able to do it in nodered. I would recommend checking it out.