TL;DR EJS Converts VSCode line wraps to
tags
I wrote a program in Node and I used EJS for converting/generating dynamic html. But problem start to appear when vs code/prettier wraps the source code lines. When I render those files with EJS it converts those line breaks of vs code to
and ads a lot of white spaces. It also adds double quotations around around string.
EJS CODE
<p> Hello <% username %>, how //assume vs code wrap it
are you doing? </p>
Generated HTML
<p>
"Hello stranger, how <br/>
how are you?"
<p>
I use ejs renderFile method to create html from ejs.