SOLVED

Preventing Marketo Email Editor from stripping out closing tags

Go to solution
Jerry_Yi
Level 2

Preventing Marketo Email Editor from stripping out closing tags

Is there any way to configure/turn off Marketo's heavy-handed HTML validation?

We use email scripts and my.tokens to generate a dynamic URL in our emails. The token's output is a full anchor tag (and only the anchor tag), i.e.: <a href="our.dynamic.url?ourparams=here">

In our email template, the code looks something like this:

{{my.dynamic_url}}Hyperlinked element</a>

The result is that Marketo's editor strips out the close "</a>" and essentially breaks the template. And there seems to be no way to keep that closing anchor tag from being stripped out.

I feel like the top suggestion will be to modify script token to output the entire anchor tag + linked element + close anchor tag. But I don't think that's a workaround that scales well. For cases where including the linked element is too cumbersome for the template, or in cases where we'd want the linked element to be dynamic as well.

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Preventing Marketo Email Editor from stripping out closing tags

I would have a separate VTL token that outputs the closing tag in this case.

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Preventing Marketo Email Editor from stripping out closing tags

I would have a separate VTL token that outputs the closing tag in this case.

Jerry_Yi
Level 2

Re: Preventing Marketo Email Editor from stripping out closing tags

Yup, this one works and delightfully silly too.