0

I have a ContentBlockbyId that I need to use to extrapolate the first name, because the data of this field includes full name, just first name, or no name at all. I've worked out the logic that is behind this content block and I'm happy to say this works:

%%=ContentBlockbyId("63")=%%

However, the issue is that it inserts a line break before and after the code. So that if I wanted to write:

I'll see you later, %%=ContentBlockbyId("63")=%%.

It would come out as:

I'll see you later, 
Shmuel
.

Is there anything I can do to remove the <br> before and after this so it renders:

I'll see you later, Shmuel.

Many thanks.

-Shmuel

2
  • 1
    are you using a code snippet content block?
    – EazyE
    Jul 22, 2019 at 14:05
  • Yes, I'm using an HTML/text block. And ideally, I would like to leave it with just the extrapolated first name as this will give me the most freedom to insert it naturally into the body of the email.
    – user68909
    Jul 22, 2019 at 20:06

1 Answer 1

0

You want to use a 'Code Snippet' Content block and not an 'HTML' block

Code snippets behave like content blocks but are different because they do not include an extra HTML table that wraps the content.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .