Escape your characters

by Oct 5, 2022

Yesterday I posted about variables when sending mails using ActiveCampaign.

Talking about variables like %RSS:ITEM:TITLEβ€Œ% inside an email I send using ActiveCampaign will of course trigger ActiveCampaign to replace these variables πŸ™„. Stupid of me!

The email didn’t make any sense without them variables.

What I should have done is one of two things:

βœ… Escaping characters
By replacing some characters in the variable with special HTML Escape Characters. For example, by replacing the character % with %. This is what I ended up doing.

βœ… Add invisible html tags
By adding a <span/> somewhere in the variable, like %RSS:ITEM:TITLEβ€Œ<span>%.

To use either one of these solutions depends on how your editor treats HTML. In WordPress you need to convert your Paragraph block to Custom HTML to apply this.

Subscribe to
The Daily Friction

A daily newsletter on automation and eliminating friction

Related Content

SpecFlow: Great concept, flawed execution.

SpecFlow: Great concept, flawed execution. SpecFlow, a BDD framework designed to make writing scenarios a breeze for requirement analysts. The problem: It falls short of its promise. ❌ The reality? Analysts rarely, if ever, write the specs themselves. Instead,...

read more

What if…? Production has a Staging slot.

What if...? Production has a Staging slot. Staging or QA environment needs to be the same or as close to production as it can be. Preferably, you want to restore a recent backup πŸ’Ύ from Production as Staging and then deploy your changes πŸ”„. Kudos πŸ‘ if you've fully...

read more

UUID v7 coming in .NET 9

UUID v7 coming in .NET 9 For those that didn't know, you can create Guids in different ways (algorithms). System.Guid supports UUID v4 out-of-the-box, the most used version. UUID v7 is now added, which creates Guids based on the current time. This means Guids can be...

read more