var url = “htp://xyz” + “?query=” + “ABC WHEN X=Y” ;
var encodedUrl = encodedURIComponent(url) ;
print("<a href="" + encodedUrl + “” > Click Here <\a>"):
When I run Preview, I see the perfect encoding with the “=” in “WHEN X=Y” replaced by $3D.
However, when this runs in the bot, somehow %3D gets decoded back to “=” and this breaks the URL.
How can I resolve this?