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
Here's example to put a space in a widget, e.g. Label:
public void setTextNbsp( final Widget w ) {
w.getElement().setInnerHTML( " " );
}
Other HTML entities could be used as well. Take care with this not to open security holes. SafeHtml, etc. might need consideration if doing something more dynamic.