Hi Paul,
you should be able to execute {{foo.something.replace("\n","<br>") }} but RegExps are not allowed so '\n' is not the same as /\n/. In any case what you want is a filter which converts new lines to <br/>. Here is what I would do
register a new filter
angular.filter('newlines', function(text){
return text.replace(/\n/g, '<br/>');
});
and then in the HTML I wold write
{{ foo.something | newline }} but that would still not do what you want since you want is to take the HTML as literal, so we need one more filter which is built in.
{{ foo.something | newline | html }}
The cool thing is that HTML filter is sanitizing, so it will be safe from malicious content.
Enjoy...