title: Special characters in angularJs function parameter
body: <p>I'm trying to call function with parameter that contains html tags and special characters:</p>
  
  <p>$scope.translate is JSON like {"phrase": "phrase1"}</p>
  
  <p>JS:</p>
  
  <pre><code>   $scope.t = function(phrase) {
      if ($scope.translate[phrase]) {
        return $scope.translate[phrase];
      } else {
        return phrase;
      }
     }
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;label class="sub-label" for="" &gt;{{t("Fields required are marked with &lt;span&gt; * &lt;/ span&gt;")}}&lt;/label&gt;
  </code></pre>
  
  <p>When there are special characters - the function is not processed, but instead shows the code.
  I guess that this is the result of processing variables in angularJS.
  How do I properly solve this problem?</p>