Is there a way to put raw HTML inside of a Label
widget with GWT? The constructor and setText()
methods automatically escape the text for HTML (so
Use the HTML class (Or more likely: The InlineHTML class instead of the Label class. InlineHTML works like label, except that you can give it html.
And just a security warning: if part of the input to your InlineHTML object is input by the user, remember to strip html out of that part, so users can't insert their own scripts into your code.