I have a question. In this code i use +tag to set a search words when user speak in microphone.
var searching = function(tag) {
            var string = "Procurando "+tag;
            var str = string.split("");
            var el = document.getElementById('liya');
            (function animate() {
                str.length > 0 ? el.innerHTML += str.shift() : clearTimeout(running); 
                var running = setTimeout(animate, 30);
            })();
            setTimeout(function () {
                $(location).attr('href', 'https://yazui.co/liya/search.php?q='+tag)
            }, 3000);            
        };
It's ok! But in results, url showing with %20 when have many words
search.php?q=words%20words%20words
How can i change %20 to + in this code?
I need that url returns
search.php?q=words+words+words
 
    