strict warning: Only variables should be assigned by reference in /home/itechpros/servoyguy.com/sites/all/modules/links/links.inc on line 1434.

URL Encode a String

escape("http://www.domain.com/path/to/filename with a space.html?param1=value 1"); 

==> http%3A//www.domain.com/path/to/filename%20with%20a%20space.html%3Fparam1%3Dvalue%201