How can I encode special characters? [#]

Hello,

I am trying to encode a value returned in the url of my request (Get):

Here is what I have:


image

This is what I expect:

image

I have already tried this format but it is not identical and does not work


image

thanks in advance

Please check this method out:

{{encodeURIComponent('#test?')}}

image

Docs: encodeURIComponent() - JavaScript | MDN

Let me know if it what you need

3 Likes

Great !! You saved me time

2 Likes