So basically I am displaying some text with ng-bind-html
on page as text consist of html element and i have requirement to show the same text when hover your mouse over it.
i have created css class which will show the same text on hover but html tag coming as a text. i found here which says it's not possible.
I am using angularjs, below is html
<div ng-controller="foo">
<p class="ellipsis" ng-bind-html="bar" data-text="{{bar}}"></p>
</div>
This is my controller
angular.module('myapp', ['ngSanitize']).controller('foo', function($scope) {
$scope.bar = "<h1>this is bar</h1>"; });
angular.bootstrap(document, ['myapp']);
Is it possible to render it as plain HTML?