title: AngularJS JSONP TypeError: url.replace is not a function
body: <p>I am trying to get URL using zillow api in angular JS.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>angular.module('account.settings').controller('AccountSettingsCtrl', ['$scope', '$http', '$sce',
    function($scope, $http, $sce) {
  
      var getZillowURL = function() {
        var url = "http://www.zillow.com/webservice/GetSearchResults.htm?zws-id=X1-ZWz1ft20wfj30r_94p25&amp;address=2114+Bigelow+Ave&amp;citystatezip=Seattle%2C+WA";
        var trustedUrl = $sce.trustAsResourceUrl(url);
        $http.jsonp(trustedUrl, {
            jsonpCallbackParam: 'callback'
          })
          .success(function(result) {
            $scope.mortgageLocation = result;
            console.log('success!');
            console.log(result);
          })
          .error(function(data, status) {
            console.log('error!');
            console.log(data);
          });
      };
      getZillowURL();
    }
  ]);</code></pre>
  </div>
  </div>
  </p>
  
  <p>But JSONP returns error.
  When I access with the URL which is used as JSONP parameter, webbrowser shows correctly.
  This zillow API returns XML data.
  How can I get this as a JSON type data?</p>