title: $sce.trustAsHtml vs. ng-bind-html
body: <p>Why can't I do this:</p>
  
  <pre><code>&lt;div&gt;{{data | htmlfilterexample}}&lt;/div&gt;
  </code></pre>
  
  <p>When, inside the filter, I am returning:</p>
  
  <pre><code>return $sce.trustAsHtml(input);
  </code></pre>
  
  <p>Using <code>&lt;div ng-bind-html="data | htmlfilterexample"&gt;&lt;/div&gt;</code> works regardless if the filter returns <code>input</code> or <code>$sce.trustAsHtml(input)</code>.</p>
  
  <p>I was under the impression that <code>$sce</code> makes HTML trustworth and <code>ng-bind-html</code> isn't needed for output returned by that method.</p>
  
  <p>Thanks.</p>