JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.angularjs.org/snapshot/angular.js"></script>
<script src="https://code.angularjs.org/snapshot/angular-sanitize.js"></script>
<div ng-app="app" ng-controller="mainCtrl">
<div ng-bind-html="showIt | toTrusted"></div>
<div ng-bind-html="htmlSafe(showIt)"></div>
</div>
JavaScript
angular.module('app', ['ngSanitize']).
controller('mainCtrl', function ($scope, $sce) {
$scope.showIt = '<iframe src="http://www.anything.com"></iframe>';
$scope.htmlSafe = function (data) {
return $sce.trustAsHtml(data);
}
}).
filter('toTrusted', function ($sce) {
return function (value) {
return $sce.trustAsHtml(value);
};
});