An AngularJS filter for highlighting and editing text parts on the view side with a regex.
I used this filter for linking twitter hashtags on a project of mine.
de omnis iste natus error sit #voluptatem #accusantium #doloremque laudantium.
de omnis iste natus error sit #voluptatem #accusantium #doloremque laudantium.
<html ng-app="app"> <head> ...template, angular stuff, etc... <!-- include the filter --> <script src="highlight.filter.js"></script> .... </head> <body> <div ng-controller="main"> ... <span ng-bind-html="text | highlight"> content</span> ... </div> </body> </html>