Why HTML not working in ejs? (ejs,mongoose,express)

My code for edit route :

<div class="field">
			<label>Blog Content</label>
			<textarea name="blog[body]"><%- blog.body %></textarea>
</div>


After I submit…

You can check my app.js file.
This is my edit.ejs file.
Why <h1> tag is not working? :frowning:

I try to read this - https://ejs.co/#install
and this - https://stackoverflow.com/a/11025348/13425579
But It’s not working <%- variable %>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.