在 GWT 中,我的代码:
rootPanel.add(new Label("© " + "2014" + " MyCorp"));
很好地显示:
© 2014 MyCorp
代替
© 2014 MyCorp
有什么提示吗?
最佳答案
我会这样做:
rootPanel.add(new Label("© 2014 MyCorp"));
或使用 HTML
:
rootPanel.add(new HTML("© 2014 MyCorp"));
关于java - 在 GWT 标签中显示 HTML 实体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22552131/