0

I have an object that has several arrays of data, some values have encoded HTML entities (such as &). I am currently looping this data with Angular ng-repeat but of course the data is show encoded characters.

How do I go about decoding these values, looping through and decoding every value before the object is passed to ng-repeat or is there a way to decode the value during ng-repeat?

Here is an example of my object:

{
    "tags": [{
        "name": {
            "id": 18262,
            "value": "Technology & Science"
        }
    }, {
        "name": {
            "id": 18263,
            "value": "Technology & Science - Best Of"
        }
    }]
}

Carl

4

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.