Hi Steve,

That is not how `ng-bind-html` works.
You need to take care of 2 things. First you need to parse your html-string 
trough $sce <https://docs.angularjs.org/api/ng/service/$sce>,
something like:
someController.$inject=['$sce'];
function someController($sce) {
  var vm= this.
  vm.toShow = $sce.trustyAsHtml('<strong>some</strong><br><span 
style="color:red">red</span>')
}

then in your template you use it like this:
<div ng-controller='SomeController as vm'>
   <span ng-bind-html="vm.toShow"></span>
<div>

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to