Can Jsoup nodes get appended to Vaadin's Element

Hi,

I might use Jsoup.parse() to get a document node. I am wondering whether there are any APIs which could allow to append Jsoup nodes to com.vaadin.flow.dom.Element?

Best regards,
Joey

Hi.

We don’t have the dedicated method, but you can use something like

Jsoup.parse("<div>SSS</div>").children().forEach(child -> getElement().appendChild(new Element(child.tagName()).setText(child.outerHtml())));

Hope this will be helpful.

Thanks a lot.

Joey