Gmail html tags problem

Hello

I want to display a thumbnail image in a gmail message however the module add a back slash to before the url. How can I correct this?

Input:
[
{
“cc”: ,
“to”: [
“stan@berteloot.org”
],
“bcc”: ,
“from”: “sberteloot@nytromarketing.com”,
“html”: “

Thank you for your message.

Check out our very personal video message:

<a href="2" target="_blank"> <**img src="**https://synthesia-ttv-data.s3.amazonaws.com/video_data/411a1cc3-4910-4c92-b317-805cc75c2487/thumbnails/default_with_play_button.jpg?AWSAccessKeyId=AKIA32NGJ5TS4EBYEA7M&Signature=z8JYo0d03HCOi9q0RxlbYH8ZzN8%3D&Expires=1736932559\\\” alt="Video Thumbnail" style="width:100%;max-width:400px;height:auto;border:1px solid #ddd;border-radius:5px">

",
“subject”: “Your personal Video”,
“attachments”:
}
]

Download input

[
{
“messageId”: “095f8e6d-0572-89a0-5e35-2db524f731ec@nytromarketing.com
}
]

see screenshot the the html message:

Hi Stanislas_Berteloot, if I get you correctly, you mean the Gmail module is adding a backslash to the thumbnail URL. I believe this can easily be removed using replace().

Hi Emmanuel,

sorry the input bundle did show the issue. here is a screenshot. Since my html seems correct, I am not sure how to proceed.
I am the only one not able to show a thumbnail in the body of a message?

Ok , I see the input, This can be extracted with regex. For instance this the string from the bundle you just showed me

:point_down:
INPUT

Using regex, this is the output

something like this?

Thanks for looking into this Emmanuel,
what I don’t get is that the email coming from Synthesia seems clean:

I see, at what point does the backslash start to appear, you could do a screen record to make it clearer

here it is. I am SO puzzled

ahhh…i see what you mean, can we hop on a call, let me see if I can help

Thank you @Emmanuel_Momoh for jumping in a call with me.
You solved it!
You suggested to remove the “” that surround the url and it worked!
image

1 Like

You’re welcome, @Stanislas_Berteloot :blush:!. Glad I could help.

1 Like