Search
Generic filters
Exact matches only
  • Encoding urls encodeURIComponent

    25th March 2014

    Javascript

    javascript category codehaven

    When using URl’s you can break one if you don’t urlencode.
    var newurl = encodeURIComponent(url);
    PHP uses rawurlencode

    Was this code snippet helpful?

    Comment on this Code Snippet?