Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

184
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda