Supposing that I have an object data
defined as follows:
res.render('index', {
data: 'Line one\nLine two' });
How can I properly render its value in html (by using Jade as template engine) splitting the text on two lines?
Note: by using \<br\>
instead of \n
, it still doesn't work.
`. – RobG Jun 08 '14 at 13:52