After reading AngularJS tutorial step-9 I have created my own AngularJS filter, which should convert boolean data into html.
Here is my filter code:
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
ng-bind-html
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.