Answers for "use ampersand in query string"

0

use ampersand in query string

They need to be percent-encoded:

> encodeURIComponent('&')
"%26"
So in your case, the URL would look like:

http://www.mysite.com?candy_name=M%26M
Posted by: Guest on July-17-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language