Lepše prikažemo sporočila - upoštevamo novo vrstico.

This commit is contained in:
Matjaz
2022-02-27 23:21:36 +01:00
parent 4f15826cba
commit 44b14487bf

View File

@ -11,7 +11,7 @@
</h5> </h5>
<p> <p>
<%= messages[i].body%> <%- messages[i].body.replace(/\n/g, '<br>') %>
</p> </p>
</div> </div>
<div class="text-xs text-gray-500 mt-3">Posted on: <%= messages[i].createdAt %> <div class="text-xs text-gray-500 mt-3">Posted on: <%= messages[i].createdAt %>