In this example $scope.myInputText
variable has trusted html with the text "My name is John Steve" and the name "John Steve" is in bold tag. The variable $scope.myInputText
is bind with the ng-bind-html
directive and shows the name as bold. See the output.