My name is Aarif Mohammad
<html>
<head> <title></title> <style type="text/css"> body { font-family: Arial; font-size: 10pt; } </style> </head> <body> <script type="text/javascript"> var app = angular.module('MyApp', []) app.controller('MyController', function ($scope, $sce) { $scope.Message = $sce.trustAsHtml("My name is <span style = 'color:red'><b>Aarif Mohammad</b></span>"); }); </script> <div ng-app="MyApp" ng-controller="MyController"> <span ng-bind-html = "Message"></span> </div> </body> </html> |