is there any way I can make the encodeURIComponent method ignore certain characters for example if I don’t want it to encode the £ sign. ?
is there any way I can make the encodeURIComponent method ignore certain characters for
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is not possible without wrapping it yourself.
Probably the safest thing to do would be…not do this. If you’re a thrill seeker, just undo the parts you want decoded after the encoding is complete.
Something like this might be a naive way (i.e. my way) of doing it: