GWT Label widgets iterprets everything as text, not as html tags – that’s good, but I would like it to interpret \n as a <br /> how do i do that.
I would make subclass, but I cant find what to override to achieve this behaviour
(I could use HTML widget, but it would interpret all tags – and all I need is an line brak)
Use an HTML widget and set its value using a
SafeHtmlconstructed withSafeHtmlBuilder.appendEscapedLines:(alternatively, you can
split("\n", -1)your text, callSafeHtml.htmlEscapeon each part and join them back with a<br>, that’s whatappendEscapedLinesdoes)