Lugo Labs

URI encode in JavaScript

Always URI encode your search params; this is especially useful for catching reserved characters like &.

js
encodeURIComponent("B&Q") => B%26M