Regular expression:
var pattern = new RegExp(keywords.join('|'), "g");
var result = text.match(pattern);
Rending a string as HTML:
<div ng-bind-html="text"></div>
P.S: Since these are two different questions, next time you should post them separately.