An Adobe Commerce developer needs to display a URL in the template. How would the variable $ur1 be securely output in the template?
To apply a knockout binding to a
A)
: This solution will use the click binding to execute the onClick() function as an expression when theC)
: This solution will use the click binding to execute the onClick function as a reference when theThe following solutions are not valid and will not work:
B)
D)
: This solution will use a custom attribute instead of a data-bind attribute to apply the click binding. This is not supported by knockout and will not have any effect.
Loreta
4 hours ago