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

182
Views
How do I prevent the line from not breaking in a header of a page?(html)

I am rendering a value from the database which seems fine and accurate when i console.log it. I use it on the header's text-content and it results with no errors, but the original text has line breakers in it when the user presses enter, and the only displayed has none!I checked again the value of the header with console.log and this is what came out:

enter image description here

dont mind the errors, they are normal and supposed to happen and unrelated, the third console.log is the textContent of the header printed, it clearly has line breaks, but here is a photo of the header:

enter image description here

it seems that the header eliminated the line breaks? how do I stop it from doing it?

Thanks!

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!