What is the best way to catch and format the \"\\n\\n\" inside of text being passed from the server to display line breaks? Fiddle is here: http://jsfiddle.net/nicktest2222/2vYB
If 'text' is null it returns an error, I added:
.filter('nl2br', function(){ return function(text){ return text?text.replace(/\n/g, ''):''; }; });