What’s better for making links, stripslashes_deep or htmlspecialchars?
For example, if I have to make a link like:
http://my-link?something=46&something=something else&some-more-variables="Everything but the opera"
(not my link design, by the way)
Is it better to use stripslashes on “Everything but the opera” part (that the user entered in quotes) or is it better to use htmlspecialchars?
use
urlencode()if you are using get variables (aka variables in the url).