Using HTML Within Arrays?


#1

This is probably something really easy that I am simply overlooking since I am extremely new at JS in general.

However, what I am trying to do, is use the seed app as my very simple base, and when you click one of the “pets” it brings you the other information about that pet, which works prefectly. But what I am attempting to do, and can’t make work, is include HTML within that “other information”, but it just displays it as if I have enclosed the entire set of data with .

Ideas?

Screenshot: https://www.dropbox.com/s/twdmspiyhk7oenm/Screenshot%202014-03-15%2020.26.38.png


#2

Yeah they have some security stuff going on to prevent cross-scripting. Html is dangerous.

I get past it by including angular-sanitize in my index.html (you’ll need to download it, I used bower)

Then in my template:

Good luck!
Kevin