$str = "http://mysite.com/user/login?s=1&return_url=some_encoded_url"; echo $this->input->xss_clean($str); // Echos the url with no modifications