In Vaadin 8 there is the possibility to show preformatted text with help of the Label component -
Label preLabel = new Label(
"Preformatted text is shown in an HTML <pre> tag.\n" +
"Formatting such as\n" +
" * newlines\n" +
" * whitespace\n" +
"and such are preserved. HTML tags, \n"+
"such as <b>bold</b>, are quoted.",
ContentMode.PREFORMATTED);
https://vaadin.com/docs/v8/framework/components/components-label
How to achieve the same with Vaadin 23 ? I need to pretty print text on the page which contains line breaks \n
– Rolf Aug 04 '22 at 10:50