Forum
Trying to replace a space with %20
Hi, I'm trying to use replace within a link so that any spaces are replaced with %20, like so...
replace=" |%20"
So...
https://mywebsite.com/link to page
becomes
https://mywebsite.com/link%20to%20page
but unfortunately it's not working and the spaces are being outputted.
Many thanks
Glen
Try urlencode or escape attributes
Like Drew mentioned:
urlencode="true"
should do the trick. From the docs: