Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

181
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda