Convert HTML into Plain Text in AngularJS
angular.module('myAngApp.filters', []).
filter('ConvertToPlainText', function() {
return function(text) {
return angular.element(text).text();
}
}
);
filter('ConvertToPlainText', function() {
return function(text) {
return angular.element(text).text();
}
}
);
Comments