I created an AngularJS filter to automatically create interactive links from the addresses found in the data. Filter:
app.filter('parseUrl', function() { var
And here is what I call it (inside the paragraph):
<p><strong>Details:</strong> {{event.description | parseUrl}}</p>
And it works correctly to replace simple text links with code for the link. However, it replaces it with a link literally like plain text. For example, www.google.com is replaced by <a href="http://www.google.com" target="_blank">http://google.com</a> . This clearly does not make the clickable link, which was my goal.
I am not sure why this is happening. Any ideas on how to prevent / fix this? Thanks.
javascript angularjs angularjs-filter
Jakemmarsh
source share