JSFiddle - React, Tailwind, and code Playground

by Nicolas PUJOL

HTML

<div>{htmlString}</div>

JavaScript

// My magic HTML string function.
function htmlString (str) {
    return "<h1>" + str + "</h1>";
}

function Ctrl ($scope) {
  var str = "HELLO!";
  $scope.htmlString = str;//htmlString(str);
}
Ctrl.$inject = ["$scope"];