title: Remove plus sign (+) in URL query string
body: <p>I am trying get the string in the following URL to display on my webpage.</p>
  
  <p><a href="http://example.com?ks4day=Friday+September+13th" rel="noreferrer">http://example.com?ks4day=Friday+September+13th</a></p>
  
  <p><em>EDIT:</em> The date in the URL will change from person to person as it's merged in by my CRM program.</p>
  
  <p>I can get it to display on my webpage using the code below, the problem is the plus signs (+) come through as well.</p>
  
  <p>eg. Friday+September+13th</p>
  
  <p>What I need it to do is replace the plus signs (+) with spaces so it looks like this:</p>
  
  <p>eg. Friday September 13th</p>
  
  <p>I'm new to this so I'm having some trouble working it out. </p>
  
  <p>Any help would be appreciated.</p>
  
  <p><strong>This is the code i'm using in a .js file</strong></p>
  
  <pre><code>      function qs(search_for) {
      var query = window.location.search.substring(1);
      var parms = query.split('&amp;');
      for (var i=0; i&lt;parms.length; i++) {
          var pos = parms[i].indexOf('=');
          if (pos &gt; 0  &amp;&amp; search_for == parms[i].substring(0,pos)) {
              return parms[i].substring(pos+1);;
          }
      }
      return "";
  }
  </code></pre>
  
  <p><strong>This is the code i'm using on my webpage to make it display</strong></p>
  
  <pre><code>     &lt;script type="text/javascript"&gt;document.write(qs("ks4day"));&lt;/script&gt;
  </code></pre>