How to create angularjs filter which outputs HTML

You should use the ng-bind-html directive (require to import the sanitize module and js file):
https://docs.angularjs.org/api/ng/directive/ngBindHtml

<span ng-bind-html="phone.connectivity.infrared | iconify"></span>

You also need to import the CSS (Bootstrap I guess) to be able to see the icon when it works.

I have provided a working example.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)