Escaping Double Curly Braces in Make.com: A Guide
Have you ever faced a problem where you're trying to output HTML in a webhook response and you're using double curly braces, like this:
<span class="status">{{ statusMessage }}</span>
And you find that 'statusMessage' is being recognized as a variable, even when you don't want it to be? Well, you're not alone. This is a common issue faced by many Make.com users, and it's due to Make frontend IML syntax that somewhat resembles mustache template syntax for variables and formulas.
But don't worry, there are a few ways to solve this problem. Let's go through them step by step.
Method 1: Using the '+' Operator
The first method involves using the '+' operator. Here's how you can do it:
<span class="status">{{{+}}{ statusMessage }}</span>
This method works perfectly and you should no longer face the issue of 'statusMessage' being recognized as a variable.
Method 2: Using {{null}}
Another method you can try is placing a {{null}} between either set of curly braces, like this:
<span class="status">{{null}}{ statusMessage }}</span>
This should also solve your problem.
So there you have it. Two simple methods to prevent 'statusMessage' from being recognized as a variable when outputting HTML in a webhook response. Remember, the key is to understand the syntax and how it works. Once you do, you'll be able to solve such problems with ease.
Hope this helps! If you have any other questions or run into any other issues, feel free to ask. Happy coding!
You do have further questions?
Ask your question via E-Mail: Richard@make-app.de
Book a paid Support & Consulting Session
New Make.com user? Sign up through this Affiliate Link to receive 10.000 operations for FREE.