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

170
Visualizações
Html element interpreted as text

I have a problem with some Html tags. They are interpreted as text i think.

In my JS file I have printed the elements into the console:

console.log(groessenTrList[i]);
console.log(groessenTrList[i].firstChild);

The chrome developer tool shows this:

[1]: https://i.stack.imgur.com/dqqaQ.png

When I print the whole element to the console everything seems to be ok. The children are fine and the html seems to be right.

But when I print the child element its interpreted as text and i dont know why.

The whole html comes from a spring backend

@PostMapping("/editArtikel")
@ResponseBody
public String editArtikel(String artikelID, HttpSession session) {
    ...
    String htmlToPrint = doc.outerHtml();
    return htmlToPrint;
}

I use Jsoup to create the html code.

Can you please help me ?

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