I need to scrape HTML data from an Email Trigger node and loop through the items in a table based on a css selector to get my Invoice Items (Desc, Qty, Price). The email node returns textPlain and textHtml and the HTML node expects Binary or JSON. How can I convert textHtml into Binary so I can use the HTML node to access my data?
Besides textHtml and textPlain we could also (or optionally) have a flag to generate a true HTML binary object that we could pump directly into the HTML node?
Hi @tim.berneman, binary data in n8n refers to any file-type data such (e.g. file attachments in your email) so if you want to access the email content, you’ll need to select Source Data > JSON. You should then be able to access the html content by setting the JSON Property to