JSFiddle - React, Tailwind, and code Playground

by dshilkret

HTML

<div ng-app="app" ng-controller="TestCtrl">
<iframe srcdoc="{{email.html | toTrusted}}"></iframe>
</div>

JavaScript

console.log('test');
angular.module('app', []);

TestCtrl = function($scope) {
    $scope.email = {html: "<b>hello</b>"};
};

angular.module('app').filter('toTrusted', ['$sce', function($sce) {
    return function(text) {
      return $sce.trustAsHtml(text);
    };
}]);


angular.module('app').controller(
    'TestCtrl',
    ['$scope', TestCtrl]);