Skip to Content
0

Reading '&' from URL Parameter value

Apr 25, 2017 at 01:01 PM

60

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Florian Pfeffer
Apr 25, 2017 at 02:00 PM
0

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

Regards,
Florian

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Yes, we have considered encoding the special characters, on the client side

Regards

Giri

0