I have a controller that has an assigned value:
$scope.post = 'please visit http://stackoverflow.com quickly';
I have some text in my html:
<p>{{post}}</p>
I would like to make a clickable link of the url (surround it with anchor tags).
I tried to change my html to:
<p ng-bind-html="post | createAnchors"></p>
Here is a simplified example of the problem:
The question is, how can I escape the whole post text, except for the link, which will be surrounded by anchor tags? ?