Link to home
Start Free TrialLog in
Avatar of jazzIIIlove
jazzIIIloveFlag for Sweden

asked on

encodeURIComponent adds % characters

Hi;

I have a code in which i use encodeURIComponent and it adds % characters to the file i generated. E.g. for space %20 is added. How can I avoid this?

Regards.
Avatar of leakim971
leakim971
Flag of Guadeloupe image

How can I avoid this?

Don't use encodeURIComponent, maybe you don't need it... or the process saving your data should decode first
Avatar of jazzIIIlove

ASKER

Hi,

I haveto use it against xss.
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial