I have an HTML element that have value attribute. The value should be Comfort & Protection but the name that comes from the JSON get result is Comfort &
Managed to solve the problem based on Max Zoom answer.
I created a filter to filter ampersands, like this.
app.filter('ampersand', function(){
return function(input){
return input ? input.replace(/&/, '&') : '';
}
});
And on my View I changed from {{term.name}}
to {{term.name | ampersand}}
One option would be to replace the &
string with &
as below:
var text = name.replace(/&/g, '&')