I have a alert that is as below:
$scope.addAlert('danger', $sce.trustAsHtml('Invalid Alias Name: Certain
limitations apply to alias naming. <a href="http://google.com/">Please refer
to the documentation</a>'));
and I am binding this to html page as :
<uib-alert ng-repeat="alert in alerts" type="{{alert.type}}"
close="closeAlert($index, alerts)" dismiss-on-timeout="2500">
<span ng-bind-html="alert.msg"></span>
</uib-alert>
As a result, Actual output:
Error: Invalid Alias Name: Certain
limitations apply to alias naming. '<a href="http://google.com/">Please
refer to the documentation</a>'
Expected Output: Error: Invalid Alias Name: Certain limitations apply to alias naming. 'Please refer to the documentation'
Can anyone please help? I do not know what I am missing!
Thanks!