title: Replace all occurrences of characters in Angular binding
body: <p>I'm trying to replace all occurrences of certain characters in my angular binding. The characters that I'd like to remove are:</p>
  
  <ul>
  <li>dashes (-)</li>
  <li>greater than (>)</li>
  </ul>
  
  <p>So a string like <code>---&gt;John Doe</code> would end up displaying like <code>John Doe</code></p>
  
  <p>in my view I bind my value and try and replace all those occurrences like so:</p>
  
  <pre><code>{{person.name.replace(/-/g, '').replace(/&gt;/g, '')}}
  </code></pre>
  
  <p>But when I run the code I get the following error:</p>
  
  <blockquote>
    <p>Error: [$parse:syntax] Syntax Error: Token '/' not a primary
    expression at column 22 of the expression [person.name.replace(/-/g,
    '').replace(/>/g, '')] starting at [/-/g, '').replace(/>/g, '')].</p>
  </blockquote>
  
  <p>Any pointers on what to do in this scenario?</p>