Showing posts with label Convert To Plain Text. Show all posts
Showing posts with label Convert To Plain Text. Show all posts

Monday, February 22, 2016

Convert HTML into Plain Text in AngularJS

angular.module('myAngApp.filters', []).
  filter('ConvertToPlainText', function() {
    return function(text) {
      return angular.element(text).text();
    }
  }
);