HTML in texts

how to do to add HTML code in String, text, etc. ??? Like or similar in Label: new Label(“Helló World”, Label.CONTENT_XHTML), but in String

Not sure what this means? A String is a Java type and it can hold HTML strings just fine. Label is a Vaadin UI component, which is very different and as you show, allows HTML content. A Label can render any amount of HTML, though, not like it’s name implies.