2015-05-05 angular►filter►escape html Escape HTML angular filter By: Ryan Wong at May 5 2015 6:06 pm This filter is very useful for you to escape all html from a string. 1234567function htmlToPlainText() { return function(text){ return String(text).replace(/<[^>]+>/gm, ''); };}angular.module('customFilter', []).filter('htmltoplaintext', htmlToPlainText) Hope this helps you out. Newer Angular filter to show how much time ago from a date object Older Dynamically add ng-click to dynamic html from scope variable