title: Attempting to use an unsafe value in a safe context on Angular js
body: <pre><code>Error: [$sce:unsafe] Attempting to use an unsafe value in a safe context.
  http://errors.angularjs.org/1.6.1/$sce/unsafe
      at https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.js:68:12
      at htmlSanitizer (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.js:18691:13)
      at getTrusted (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.js:18860:16)
      at Object.sce.(anonymous function) [as getTrustedHtml] (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.js:19540:16)
      at ngBindHtmlWatchAction (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.js:25632:29)
      at Scope.$digest (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.js:17814:23)
      at Scope.$apply (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.js:18080:24)
      at bootstrapApply (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.js:1841:15)
      at Object.invoke (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.js:4842:19)
      at doBootstrap (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.js:1839:14)
  </code></pre>
  
  <p>This is the error I get with the code below.</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html ng-app="parking"&gt;
  &lt;head&gt;
  &lt;title&gt;[Packt] Parking&lt;/title&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.js"&gt;&lt;/script&gt;
  &lt;script src="//code.angularjs.org/1.2.20/angular-sanitize.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      var parking = angular.module("parking", []);
      parking.controller("parkingCtrl", function ($scope) {
          $scope.appTitle = "&lt;b&gt;[Packt] Parking&lt;/b&gt;";
      });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body ng-controller="parkingCtrl"&gt;
  &lt;h3 ng-bind-html="appTitle"&gt;&lt;/h3&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I am new to angular js. Can you please tell me what I am doing wrong here? Thank you. </p>