I am using perl and CGI,where i am accumulating data and placing it in url.Like below
http://acv.farm.com/devpm/tiber/tiyu.cgi?sid=233®ion=Asia&description=for data in 'bf' and 'cx'&psite=bothwork.
Here in this url in description their is single quotes if it comes, then my button is not working. If we remove single codes manually then button is working.
I am taking this url in one variable my $durl=http://acv.farm.com/devpm/tiber/tiyu.cgi?sid=$id®ion=$reg&description=$desc&psite=$pwork
also i am formatting this with $durl =~ s/\+/\%2B/g
And then I am passing this variable in href like this <a href=\"$durl\">
I am looking for the logic to handle single and double quotes if it comes in url.