html - '&' inside a parameter breaks url -


i have problems character '&' in url. have 3 string , in 1 of there text character '&'.

example:

"monsters & co." 

i have take 3 string pass them in url page. example:

<a href="http://www.pageexaaa.com?param1=aaa&param2=bbb&param3=monsters & co.">link</a> 

but on second page can see third parameter monsters because url thinks & new parameter.

how can do? everyone.

replace & %26

forexample see url http://www.google.com/search?sourceid=chrome&ie=utf-8&q=%26

so in case

<a href="http://www.pageexaaa.com?param1=aaa&param2=bbb&param3=monsters %26 co.">link</a> 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -