正确显示

I have url links in a database like

( 50712&gift=pi )

but when I call the link it displays as

( 50712&gift=pi )

now as there are hundreds of links how to I get it to display correctly

thanks in advance

You can use html_entity_decode() on your link.

EDIT:

As said in the comments, don't forget to use ENT_NOQUOTES as quote_style, it will avoid security problems.

ini_set('arg_separator.output', '&');