Skip Over Error in Loop

I tried asking this on StackOverflow a little bit ago and I never got a response. The project is urgent.

I am trying to use Google’s Feed API to get images using a feed inside of an AngularJS controller. It will successfully get three images then it will hit a twitter URL and it get’s confused and breaks the script. I want it to skip over that and keep loading images. Is there anyway to do that?


Error: Syntax error, unrecognized expression: submitted by <a href=""> lachlan_jp </a> <br> <a href="">[link]</a> <a href="">[8 comments]</a>


$http.get("", { params: { "v": "1.0", "q": "", "num": "100" } })
            .success(function(data) {
                $scope.rssTitle = data.responseData.feed.title;
                $scope.rssUrl = data.responseData.feed.feedUrl;
                $scope.rssSiteUrl =;
                $scope.entries = data.responseData.feed.entries;

            var data = data.responseData.feed;

            var findFirstImage = data.entries.content;
            angular.forEach(data.entries, function(value){
              value.sapleImage =     $(value.content).find('img').eq(0).attr('src');

        .error(function(data) {
            console.log("ERROR: " + data);