replace the colon with unicode
if(searchVal.match(/:/g)){ n = searchVal.replace(':', '\\x3A'); $scope.searchObj['filterText'] = n; } else { $scope.searchObj['filterText'] = searchVal; }