Flow Div and Thymeleaf on webpages

In my code

Div thymeleafContent = new Div();

String out= this.svgNew;

// thymeleafContent.getElement().setProperty(“innerHTML”, out);
thymeleafContent.getElement().executeJs(“this.innerHTML =$0”, out);

gives webpage which show the actual svg kode in String out.

But when i update the out with more svg-code did it not give the ew page.
How can i updata the div element?