Fixed Escaped

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@100776 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-10-16 16:44:48 +00:00 committed by Giancarlo Panichi
parent b759afd918
commit 38ced7b8cd
3 changed files with 9 additions and 8 deletions

View File

@ -115,10 +115,10 @@ public class HistoryPanel extends FramedPanel implements MonitorDialogListener {
@Override
public void render(Context context, OpHistory value,
SafeHtmlBuilder sb) {
sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>Date:</b>"
+ value.getDate() + "</p>");
sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>Description:</b> "
+ value.getDescription());
sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>Date:</b>").appendEscaped(
value.getDate()).appendHtmlConstant("</p>");
sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>Description:</b>")
.appendEscaped(value.getDescription()).appendHtmlConstant("</p>");
}
});
@ -129,8 +129,8 @@ public class HistoryPanel extends FramedPanel implements MonitorDialogListener {
@Override
public void render(Context context, String value, SafeHtmlBuilder sb) {
sb.appendHtmlConstant("<span title='" + value + "'>" + value
+ "</span>");
sb.appendHtmlConstant("<span title='").appendEscaped(value).appendHtmlConstant("'>").appendEscaped(value).
appendHtmlConstant("</span>");
}

View File

@ -22,6 +22,7 @@ import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.safehtml.shared.SafeHtmlUtils;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.web.bindery.event.shared.EventBus;
import com.sencha.gxt.data.client.loader.RpcProxy;
@ -98,7 +99,7 @@ public class ValidationsTablePanel extends FramedPanel {
@Override
public void render(Context context, String value, SafeHtmlBuilder sb) {
sb.appendHtmlConstant("<span title='" + value + "'>" + value
sb.appendHtmlConstant("<span title='" + SafeHtmlUtils.htmlEscape(value) + "'>" + SafeHtmlUtils.htmlEscape(value)
+ "</span>");
}

View File

@ -176,7 +176,7 @@ public class ValidationsTasksPanel extends FramedPanel implements
@Override
public void render(Context context, String value, SafeHtmlBuilder sb) {
sb.appendHtmlConstant("<span title='"
+ SafeHtmlUtils.htmlEscape(value) + "'>" + value
+ SafeHtmlUtils.htmlEscape(value) + "'>" + SafeHtmlUtils.htmlEscape(value)
+ "</span>");
}