title: Wrapping matched string in an anchor tag
body: <p>I'm implementing hashtags in my app i use ionic angularjs, im trying to match what's in the string and wrap them around an anchor in the string have a data model like this:</p>
  
  <pre><code>    {id:1, tags:["cool","love"], message: "i am #cool and i #love you"}
  </code></pre>
  
  <p>Lets say for example view is like this:</p>
  
  <pre><code>      &lt;p&gt; i am #cool and i #love you&lt;/p&gt;
  </code></pre>
  
  <p>How do i implement this</p>