Writing html tags in GWT client side

Posted by arinte on Stack Overflow See other posts from Stack Overflow or by arinte
Published on 2010-05-14T17:20:38Z Indexed on 2010/05/14 17:24 UTC
Read the original article Hit count: 252

Filed under:

I have this code in my gwt client side:

        String out = result.getConsoleOutput().replaceAll("\n", "<br/>");
        transOut.getElement().setInnerText(out);

Basically what comes out of consoleoutput() is text from a telnet client and transOut is a HTMLPanel in a UiBinder. I want it to show up pretty so I tried to change all the \n to html
, but when it shows up in firefox it looks like this on screen blah blah
blah blah...
. I am guessing gwt escapes the text somewhere how can I get it to write the real tag.

© Stack Overflow or respective owner

Related posts about gwt