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

168
Views
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
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!