I have MySQL table with column PROJ_ABOUT which is type TEXT.
I inserted multiple rows into this column and now I am trying to diplay this entry in my Express.js app using ejs engine.
<p><%= rows.PROJ_ABOUT %></p>
**Instead of this:**
**I get this:**
**So i got this:**
You need to use the proper EJS syntax for rendering unescaped HTML, otherwise you will get the escaped strings.
Short answer would be :
<!-- V You should use - instead of = --> <p> <%- rows.PROJ_ABOUT %></p>
this will render your
rows.PROJ_ABOUT variable as unescaped HTML