You had the wrong syntax. Basically, an external functionfilter means dependency injection, and then the internal function is called in each digest cycle of the updated view.
: textProvider < - text < - stripbreaks - , text
.filter('stripbreaks', function(){
return function(text){
return text.replace(/<br>/g, '');
}
});