title: How do you use trustAsHtml within a filter?
body: <p>I have a filter that I'm using in ng-grid, and I need to join a couple of fields together.  I'd like to be able to control the formatting of the cell, but I can't seem to get $sce to trust my output.</p>
  
  <p>The cellTemplate looks like:</p>
  
  <pre><code>'&lt;div class="ngCellText" ng-class="col.colIndex()"&gt;&lt;span ng-cell-text&gt;&lt;a ng-click="editAddlInfo(row.entity.id)"&gt;{{ row.entity|showAddlInfo }}&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;',
  </code></pre>
  
  <p>And the filter looks like:</p>
  
  <pre><code>    .filter('showAddlInfo', function($sce) {
          return function(entity) {
              if(entity.warning) {
                  txt = '&lt;strong&gt;' + entity.warning + '&lt;/strong&gt; ';
              }
              if(entity.note) {
                  txt += '&lt;em&gt;' + entity.note + '&lt;/em&gt;';
              }
              return $sce.trustAsHtml(txt);
          };
      });
  </code></pre>
  
  <p>The HTML in the page comes out like this:</p>
  
  <pre><code>&lt;a ng-click="editAddlInfo(row.entity.id)" class="ng-binding"&gt;&amp;lt;em&amp;gt;This is the note.&amp;lt;/em&amp;gt;&lt;/a&gt;
  </code></pre>
  
  <p>Seems like trustAsHtml should have let it flow thru without conversion....</p>