title: Characters Disallowed in CodeIgniter
body: <pre><code>var url =  "&lt;?php echo site_url('/main/getSearchResults'); ?&gt;";    
  $.ajax({
              url: url,
              type: 'POST',
              data: searchString,
              success: function(result){
                  var restaurant_array =   JSON.parse(result);
                  var result_list='';
                  for(var i=0;i&lt;restaurant_array.length;i++){
                      result_list = '&lt;li data-icon="false"&gt;&lt;a href="#"&gt;'+restaurant_array[i].name+'&lt;/a&gt;&lt;/li&gt;'+result_list;
                  }
                  $('#search-basic').html(result_list);
                  $('#search-basic').listview('refresh');
              }           
          });
  </code></pre>
  
  <p>I am using codeigniter. In my js file I have written the above code. Its showing "Disallowed characters" during ajax call. I guess URI is having some unaccepted characters. Is there any solution for this? Thanks in advance. </p>