angularjs中无法直接使用ng-bind-html:
<divng-bind-html="item.text|highlight:$select.search"></div>
1.app.js中添加
angular.module('epcui',[ 'ngSanitize'//ngSanitize ])
2.html中添加sanitize
<scriptsrc="js/angular/angular-sanitize.js"></script>
借鉴:http://www.cnblogs.com/yshyee/p/4272180.html
原文链接:https://www.f2er.com/angularjs/147314.html