Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

294
Views
When rendering EJS files in Javascript, it turns wordwrap lines of vscode to <br/>?

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.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!