title: Unknown provider $sce in AngularJS
body: <p>I am trying to use the $sce. I set up my code like this:</p>
  
  <pre><code>var app = angular
      .module('app', ['ui.router', 'admin', 'home', 'questions', 'ngResource', 'ngSanitize', 'LocalStorageModule','ajoslin.promise-tracker'])
      .config(['$locationProvider', '$sce', '$sceProvider', '$stateProvider',
          function ($locationProvider, $sceProvider, $stateProvider) {
  
              $sceProvider.enabled(false);
              $locationProvider.html5Mode(true);
  </code></pre>
  
  <p>In the controller:</p>
  
  <pre><code>angular.module('questions')
      .controller('QuestionsContentController',
      ['$rootScope', '$sce', '$scope', '$http', '$resource', '$state',
      function ($rootScope, $sce, $scope, $http, $resource, $state) {
  
          var isNumber = !isNaN(parseFloat($state.params.content));
  </code></pre>
  
  <p>I checked and I have the angular-sanitize.js v1.2.0-rc.3  loaded. </p>
  
  <p>However I am getting a message:</p>
  
  <pre><code>Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
  Error: [$injector:unpr] Unknown provider: $sce
  </code></pre>
  
  <p>Can anyone help me by suggesting what I am doing wrong. I have followed the example as much as possible but can't find out what's wrong.</p>
  
  <p>Some background: </p>
  
  <p>The reason I think I need to get the $sce is because I have data that I trust 100% and that I want to show on the screen. It's data that contains "&lt;" ">" "&amp;" and thing like this. I set the $sceProvider.enabled(false) but the data still shows up incorrectly. Next I was thinking that maybe I need to do:</p>
  
  <p>$scope.content = data.text;
     $scope.unsanitizedQuestionText($sce.trustAsHtml(data.text))</p>
  
  <p>and then in my HTML have:</p>
  
  <p></p>
  
  <p>Is this the right way to go about what I need?</p>