Removing HTML text from Abandoned Cart product link
I’m not sure why the HTML is showing up in the hyperlink text for the product link in the ‘abandoned cart’ email… the text included in the email template is {{ item.product.title }}
Attaching an image for how it appears when email is received. If anyone can suggest why this is happening, and how to resolve please do let me know!
Page 1 / 1
@cluch - Most likely, if there’s HTML it’s because it’s in the actual product name in your ecommerce platform. Since they are interpreted on the website, you don’t see them. But when they are used in an email template, then they show. Ideally, you should not have styling/markup in your CMS and adjust them in the template instead.
However, a quick around is to use a “Filter” that can strip all the HTML tags like this:
{{ item.product.title | striptags }}
Give that a shot and let us know if it worked!
Hi there,
I am having a similar problem in the Replenishment Reminder/Buy Again flow, that doesn’t seem to work upon implementing the ‘filter’ you suggested. I’m wondering if there’s another type of workaround?
Also, when I try to save the component I’m getting the following error notice :
Let me know if you have any suggestions for resolving. Thank you!
@cluch - Can you click on the “Source” button and copy/paste what you have there?
The “Filter” should work to remove any HTML tags that might be present in your “title”- in your example, I don’t see you added the filter. {{ item.product.title }} should be replaced to look like this:
@cluch Hmmm, that seems correct. I tested it and I didn’t get that error. Here’s what I used, make sure to copy this and paste it in “Source” and not “Text” of the text portion of your Table Block.