title: How to properly escape special characters using ngSanitize?
body: <p>I want to let user enter special characters such as "&amp;" and then convert those to correct html when page is submitted. ex "&amp;" => "&amp;amp" I have read the examples and found <strong>ng-bind-html</strong> and <strong>$sce</strong>.</p>
  
  <p>It seems ng-bind-html is useless for my need as it will only show html text sent from controller properly converted in the view. ex: it will show "&amp;amp" as "&amp;" to the user. So what I'm doing is converting the characters using "$sce" at the controller before sending it to server. Ex:</p>
  
  <pre><code>var accountName = $sce($scope.accountName);
  </code></pre>
  
  <p>Is this the correct way to do this? Or is there a straight forward way to bind the view to pass sanitized text to the controller, just like ng-bind-html but in a two-way binding? I'm using <strong>Angular 1.2.4</strong>.</p>