Hey there! I'm just diving into the world of Angular JS and I'm looking to filter any Twitter text that comes back containing a hashtag, and turn that word into a clickable link.
For example:
If the returned twitter text is
"The quick brown #fox jumps over the lazy #dog", I want it to appear as
"The quick brown
jumps over the lazy <a href="page.link">#fox</a>
<a href="page.link">#dog</a>
Here's the HTML code:
<ul class="list-unstyled">
<li ng-repeat="tweet in tweets" class="striped">
<p ng-bind-html="tweet.text | filter:hashtag"></p>
</li>
</ul>
And here's the JavaScript code:
app.filter('hashtag', function(){
});