I\'m trying to create an Angular2 custom pipe that outputs raw html. I want it to simply convert newlines in the input into HTML line breaks. How do I output raw HTML from a
value.replace(/(?:\\r\\n|\\r|\\n)/g, '');
works for me