Convert text from href links into ng-click.
//input: <a href="xxx">
//output: <a ng-click="GotoLink('xxx')">
function convert2ngclick(str) {
var res = str.replace(/<a href=\"(.+?)\">/g, '<a ng-click="GotoLink(\'$1\')">');
return res;
}