There are more ways.
First way - is a change of content and replacing for a <br />
:
p !{escape(foo).replace(/\n/g, '<br/>')}
Second way - You can apply custom CSS, so you don't need to replace content and break \n
<style> p { white-space: pre; }</style>