JSFiddle - React, Tailwind, and code Playground

HTML

<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular-sanitize.js"></script>
<body ng-app="customDirective">

    <input type="text" ng-model="inputContent">
    <p ng-bind-html="inputContent"></p>
        
</body>

JavaScript

'use strict';

angular.module('customDirective', ['ngSanitize'])

.directive('test', function() {
        return {
            restrict: 'E',
            template: 'it Works !!'
        };
});