explanation of initial sample code
angularjs filter to change newline tag