My code is outputting a message in this format:
<td class="Msg">
<div class="collapse">
<h4 class="message">{{statement.Msg}}</h4>
</div>
</td>
No matter how I try to format it, the message always displays like this:
a, b, c, d, e
I need a linebreak after each comma. Looking at the innerHTML
in FireBug shows that the format is correct.
How can I ensure that the innerHTML
of the statement.Msg
is displayed properly?
UPDATE: The message within the innerHTML
contains \r\n
as delimiters. This is how it's stored in the database and what I see in FireBug, but the formatting on the page is not reflecting this.