I want to assign the value of this replaced value back to the same variable.
Solved! Go to Solution.
Views
Replies
Total Likes
@GeorgeVi2 Try this,
{% let itin_1_img_alt = "This-is-my-ALT-tag" %}
{% let itin_1_img_alt = replaceAll(itin_1_img_alt,"-"," ") %}
{%= itin_1_img_alt %}
@GeorgeVi2 Try this,
{% let itin_1_img_alt = "This-is-my-ALT-tag" %}
{% let itin_1_img_alt = replaceAll(itin_1_img_alt,"-"," ") %}
{%= itin_1_img_alt %}
That worked, thank you.
@GeorgeVi2 - you should also take a look at recent improvements that provide the ability to set global variables in expression fragments that can be replaced easily:
Views
Likes
Replies