Gmail text extraction

gmail node

When I extract mail from linkedin, I want the plain text as shown in the gmail,
but in n8n it appears with the links and basically i can’t exctract any information.

example

This is what I got in n8n:

Il tuo aggiornamento da ESIS S.r.l.\n\n----------------------------------------\n\nIl destinatario di questa email è Andrea Mugnano (Artificial intelligence and innovation management)\nScopri perché queste informazioni sono incluse: Messaggio di sicurezza in calce nelle email di LinkedIn | Assistenza LinkedIn ricevendo notifiche email di LinkedIn.\n\nAnnulla l’iscrizione: https://www.linkedin.com/comm/psettings/email-unsubscribe?lipi=urn%3Ali%3Apage%3Aemail_email_jobs_application_rejected_01%3BY1iOUUdbTv%2BT0rNu4MkXAw%3D%3D&midToken=AQFiuPDOTri0WA&midSig=0KKd68TVGSVHQ1&trk=eml-email_jobs_application_rejected_01-unsubscribe-0-textfooterglimmer&trkEmail=eml-email_jobs_application_rejected_01-unsubscribe-0-textfooterglimmer-null-jigl69~mdha91cg~7x-null-null&eid=jigl69-mdha91cg-7x&loid=AQFRzg7NRf64IAAAAZg8GO1xy1_lJ9pFbq0SminDjzOgloRNapcoslxpNlC0cJUwVkTNf82FSLLN5nWoaHFvK_SkJtxzUz24stPVffou_Wc0UUnQDgo6ux4oyc217oxiWrh_UQ\nGuida: Gestire le emali di LinkedIn | Assistenza LinkedIn 2025 LinkedIn Ireland Unlimited Company, Wilton Plaza, Wilton Place, Dublin 2.LinkedIn è una ragione sociale registrata di LinkedIn Ireland Unlimited Company.\nLinkedIn e il logo LinkedIn sono marchi registrati di LinkedIn.

While the actual mail text is this:

How can I extract the real text in n8n?

in the gmail you are not looking at the plain text though, In the gmail (and screenshot) you are looking at the html version.

The text and html versions can in fact be different, so if some information is in fact different, you could grab the html version and the extract text from that html with HTML node. Something like that:

Yeah I’ve already tried but it doesn’t work.
when I said text I mean that you could see the text within the links in the html file of the mail.
if i extract the html is not able to “render” these links and instead it shows the URL, instead of the information within the URL (like it’s showed in the example)

What do you mean it doesn’t work? Could you clarify what do you consider a final result? The workflow consumes HTML from the trigger, and then… what you want to get? The text without links? If so, you can exclude tags, which you need to skip in the HTML node, for instance and :

this is what i get:

Il tuo aggiornamento da ESIS S.r.l.\n\n----------------------------------------\n\nIl destinatario di questa email è Andrea Mugnano (Artificial intelligence and innovation management)\nScopri perché queste informazioni sono incluse: Messaggio di sicurezza in calce nelle email di LinkedIn | Assistenza LinkedIn ricevendo notifiche email di LinkedIn.\n\nAnnulla l’iscrizione: https://www.linkedin.com/comm/psettings/email-unsubscribe?lipi=urn%3Ali%3Apage%3Aemail_email_jobs_application_rejected_01%3BY1iOUUdbTv%2BT0rNu4MkXAw%3D%3D&midToken=AQFiuPDOTri0WA&midSig=0KKd68TVGSVHQ1&trk=eml-email_jobs_application_rejected_01-unsubscribe-0-textfooterglimmer&trkEmail=eml-email_jobs_application_rejected_01-unsubscribe-0-textfooterglimmer-null-jigl69~mdha91cg~7x-null-null&eid=jigl69-mdha91cg-7x&loid=AQFRzg7NRf64IAAAAZg8GO1xy1_lJ9pFbq0SminDjzOgloRNapcoslxpNlC0cJUwVkTNf82FSLLN5nWoaHFvK_SkJtxzUz24stPVffou_Wc0UUnQDgo6ux4oyc217oxiWrh_UQ\nGuida: Gestire le emali di LinkedIn | Assistenza LinkedIn 2025 LinkedIn Ireland Unlimited Company, Wilton Plaza, Wilton Place, Dublin 2.LinkedIn è una ragione sociale registrata di LinkedIn Ireland Unlimited Company.\nLinkedIn e il logo LinkedIn sono marchi registrati di LinkedIn.

this is what i want:

Il tuo aggiornamento da ESIS S.r.l.
ESIS S.r.l.
Junior AI Developer
ESIS S.r.l. · Bologna, Emilia Romagna, Italia
Candidatura inoltrata: 21 lug
Grazie dell’interesse mostrato per la posizione lavorativa Junior AI Developer presso ESIS S.r.l. a Bologna, Emilia Romagna, Italia. Purtroppo abbiamo deciso di non procedere con la sua candidatura, ma apprezziamo molto il tempo che ci ha dedicato e il suo interesse per ESIS S.r.l..
Cordiali saluti,
ESIS S.r.l.

I don’t want the link to be erased but I want the info within them showed as text.

The point is that i want to automate the extraction of the job position and company of every new job application i make, which append in a google sheet and update the row whenever i got updates about being rejected

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.