JSFiddle - React, Tailwind, and code Playground

by TOJO PAUL

HTML

<script src=" https://cdnjs.cloudflare.com/ajax/libs/angular-sanitize/1.4.8/angular-sanitize.js"></script>
<div ng-app='Stringtohtml'>
<div ng-controller='AppController'>
<div ng-bind-html="datas">

</div>
</div>
</div>

JavaScript

var myApp=angular.module('Stringtohtml', ['ngSanitize']);
myApp.controller('AppController', ['$scope', '$sce',
  function AppController($scope, $sce) {
  $scope.data={"message": "<img src='https://camo.githubusercontent.com/9e39276ad39fe3cda7ac61dd0f1560dc5ad1ab95/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f3737343835392f4769744875622d5265706f732f7465737464756d6d792f63726173687465737464756d6d792e6a7067' />"};
 $scope.datas=$sce.trustAsHtml($scope.data.message);
  }]);