Skip to Content

Reading '&' from URL Parameter value

Hello Friends

I am getting the input values from the URL. In a column there are some '&' values. So how should i pass them as a value in the URL? (I can do this by replacing '&' with a %26 in the URL)

But, I dont want to change this in the URL. how can I handle this in the XSJS code?

Any suggestions? to my understanding we need to use some substring/split/search options to replace the string. None of my attempts had a success.

Any help/guidance on this would help to fix this

Regards

Giri

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 25, 2017 at 02:00 PM

    Why do you not use the function "encodeURIComponent" to encode your parameter value and "decodeURIComponent" to decode your parameter value?

    Regards,
    Florian

    Add comment
    10|10000 characters needed characters exceeded