Pergunta

I'm trying to understand the issue with my code for a day without success. So I would ask for help. I'm trying to use ng-bind-html-unsafe in a template. I'm new to Angular so probably I'm missing something simple. Just to be clear: I did read all related questions / answers first but still stuck. Here is the code: http://plnkr.co/edit/AcBeML?p=preview

Foi útil?

Solução

Since angular 1.2.x you just have to use ng-bind-html

So :

ng-bind-html="item.text"

Working plunker : http://plnkr.co/edit/CLet6FdaxVE9aDKMrqP7?p=preview

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top