I am still not that familiar with the Jade template engine. Is there a way to convert the new lines such as to br tags and at the same time keep the other content encoded?
For example
.replace(/
/g,'</br>')
applied over the encoded value should do the work. However I am not sure how to encode the value and get the result. Is there any helper for this?
See Question&Answers more detail:os