In this scenario, I have a component called Froala Editor that allows the creation of custom dropdowns. To achieve this, it requires an object in the following format:
// Options for the dropdown.
options: {
'opt1': 'Option 1',
'opt2': 'Option 2'
},
I am utilizing this dropdown feature to insert placeholders in the editor for mail merge. The values I am using look like this:
{
'{{ first_name | fallback: "" }}': 'First Name',
'{{ last_name | fallback: "" }}': 'Last Name'
}
However, when attempting to do so, instead of returning {{ first_name | fallback: "" }}, it only returns {{ first_name | fallback:. I have attempted escaping the quotes with a \ but to no avail. What steps should I take to ensure the entire string is returned correctly?