-
Notifications
You must be signed in to change notification settings - Fork 502
Open
Description
Here is the code I am using to render blog posts that will contain HTML. The HTML, as seen in the picture below, is rendered as text even though I used <%- in order to allow HTML. Is there a bug or is there something I am missing here?
<% for(var i=0; i < result.length; i++) { %>
<div class="card">
<h2><%= result[i].title %></h2>
<h5>Posted: <%= result[i].posted %></h5>
<p><%- result[i].body %></p>
</div>
<% } %>
If someone could explain to me why this current implementation is not working as expected that would be greatly appreciated!
Metadata
Metadata
Assignees
Labels
No labels
