When working with the data from a specific service, I found it necessary to utilize the information provided by the following link:
The data contains HTML mixed in, which can be cleaned using an online tool
Below is a snippet of the data obtained:
cb({
"title": "Recent Uploads tagged london",
"link": "http://www.flickr.com/photos/tags/london/",
"description": "",
"modified": "2015-06-27T17:21:27Z",
"generator": "http://www.flickr.com/",
"items": [
{
"title": "Citywards",
"link": "http://www.flickr.com/photos/peterphotographic/19182673346/",
"media": {"m":"http://farm1.staticflickr.com/269/19182673346_eae48f0d5d_m.jpg"},
"date_taken": "2015-06-22T20:25:21-08:00",
"description": " <p><a href=\"http://www.flickr.com/people/peterphotographic/\">peterphotographic<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/peterphotographic/19182673346/\" title=\"Citywards\"><img src=\"http://farm1.staticflickr.com/269/19182673346_eae48f0d5d_m.jpg\" width=\"173\" height=\"240\" alt=\"Citywards\" /><\/a><\/p> <p>W&DPS City Walk 2015<br /> <br /> Thameside, London, UK<\/p>",
...ETC
To clean and display each item using ng-repeat, what steps should I take?
Access the corresponding Plunker for demonstration purposes at this link
If you are facing difficulty viewing content due to Access-Control-Allow-Origin issues, consider installing this Chrome extension to resolve the problem:
I encountered a similar issue as well.