JSFiddle - React, Tailwind, and code Playground
by chenjy
HTML
<div ng-app="myApp" ng-controller="myCtrl" class="app">
<div ng-bind-html="html"></div>
</div>
JavaScript
angular.module('myApp', [])
.controller("myCtrl", ["$scope","$locationProvider","$sceProvider","$stateProvider",function($scope,$locationProvider,$sceProvider,$stateProvider) {
$scope.myage = 16;
$scope.myInfo = {
name:"chenjy"
};
var html ="<div>my name:<span class='info'>chenjy</span>,my age:<span class='age'>16</span></div>";
$scope.html = $sce.trustAsHtml(html);
}]);