title: Passing string variable with spaces
body: <p>In the following code:</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
          function updateView(set) {
              $.post("&lt;?php echo base_url("/show_cards/load_page")."/"; ?&gt;"+set, function( data ) {
                  $( "#content" ).html( data );
              });
          }
      &lt;/script&gt;
  </code></pre>
  
  <p>'set' is a string variable which can have spaces in it. I'm noticing when it has spaces it's not working correctly. How can I fix this?</p>
  
  <p>EDIT: For clarity, I'd like to keep the spaces intact.</p>