I am getting a list of object from service. I used ng-repeat to display json object data in ui.
<div class="agreementPopover" ng-repeat="pm in list">
<p class="md-subhead robotoMedium bodyFontColor zeroMrgn" >{{pm.des}}</p>
<p class="md-subhead blackColour btmMrgn" ng-bind-html="pm.html| renderHTML"></p>
</div>
I created a custom filter to convert my html in trust html.
filter('renderHTML', ['$sce', function($sce) {
return function(val) {
return $sce.trustAsHtml(val);
};
}])
The issue is dynamic html content is not displaying in my UI.
My Html content is
<a href="http://force.com/PublicKB/articles/FAQ/What-is-the-for-Program/?q=letter+of+credit&l=en_US&fs=RelatedArticle" target="_blank" class="agreementPaymentLink">www.skip.com</a>