title: &nbsp; in script is not getting compiled
body: <p>I have created an application in AngularJS with a drop down with space in option using a filter. The application is working fine but the <code>&amp;nbsp;</code> which I have put for space is not getting compiled.</p>
  
  <p>My code is as given below</p>
  
  <p><strong><a href="http://jsfiddle.net/q0sy8rkh/" rel="nofollow">JSFiddle</a></strong></p>
  
  <p><strong>html</strong></p>
  
  <pre><code>&lt;select&gt;
      &lt;option ng-repeat="(key, value) in headers"&gt;{{value | space}}
      &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p><strong>script</strong></p>
  
  <pre><code>app.filter('space', function() {
    return function(text) {
         if(_.isUndefined(text.mainId))
         {
             console.log('entered mainId');
             return text.value;
         }
         else
         {
             console.log('entered');
             return '&amp;nbsp;&amp;nbsp;&amp;nbsp;'+text.value;
         }
    };
  </code></pre>