The JSON response returned from my server includes a long string (message body or multi-line note).
A typical message.body might look something like this:
"Hi!\r\n\r\nHow life? Everything is well with me\r\n\r\nSincerely,\r\n\r\nAustin\r\n"
Now, using the steering wheels, I build in like
<p>{{body}}</p>
However, this applies to this in html:
<p>"Hi!
How life? Everything is well with me
Sincerely,
Austin"</p>
How can I make this render every single line in my own html [p] paragraph tag? In rails, I would do it with something like this (in haml)
- note.body.each_line do |x|
%p= x
source
share