Ok, I have a HTML column which should parse any textcell that contain html tag into HTML value:
public class HTMLColumn extends Column<List<String>, String>{
public HTMLColumn(){
super(new ClickableTextCell(){
public void render(Context context,
SafeHtml value,
SafeHtmlBuilder sb)
{
//String text="";
if(value!=null){
//text=value.asString();
sb.appendHtmlConstant("<div>");
sb.appendHtmlConstant("<b>"+value.asString()+"</b>");
sb.appendHtmlConstant("</div>");
}
}
});
}
}
ok, when testing with the text contain car<br>bike, i can see the whole text got bold so sb.appendHtmlConstant seem to be ok, but it did not make the bike to be in new line. It rendered the text like this: bold car<br>bike.
That mean <br> was not parsed.
Is this the css problem or something happened?