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:
parent
b759afd918
commit
38ced7b8cd
|
@ -115,10 +115,10 @@ public class HistoryPanel extends FramedPanel implements MonitorDialogListener {
|
||||||
@Override
|
@Override
|
||||||
public void render(Context context, OpHistory value,
|
public void render(Context context, OpHistory value,
|
||||||
SafeHtmlBuilder sb) {
|
SafeHtmlBuilder sb) {
|
||||||
sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>Date:</b>"
|
sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>Date:</b>").appendEscaped(
|
||||||
+ value.getDate() + "</p>");
|
value.getDate()).appendHtmlConstant("</p>");
|
||||||
sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>Description:</b> "
|
sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>Description:</b>")
|
||||||
+ value.getDescription());
|
.appendEscaped(value.getDescription()).appendHtmlConstant("</p>");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -129,8 +129,8 @@ public class HistoryPanel extends FramedPanel implements MonitorDialogListener {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render(Context context, String value, SafeHtmlBuilder sb) {
|
public void render(Context context, String value, SafeHtmlBuilder sb) {
|
||||||
sb.appendHtmlConstant("<span title='" + value + "'>" + value
|
sb.appendHtmlConstant("<span title='").appendEscaped(value).appendHtmlConstant("'>").appendEscaped(value).
|
||||||
+ "</span>");
|
appendHtmlConstant("</span>");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
|
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
|
||||||
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
|
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.gwt.user.client.rpc.AsyncCallback;
|
||||||
import com.google.web.bindery.event.shared.EventBus;
|
import com.google.web.bindery.event.shared.EventBus;
|
||||||
import com.sencha.gxt.data.client.loader.RpcProxy;
|
import com.sencha.gxt.data.client.loader.RpcProxy;
|
||||||
|
@ -98,7 +99,7 @@ public class ValidationsTablePanel extends FramedPanel {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render(Context context, String value, SafeHtmlBuilder sb) {
|
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>");
|
+ "</span>");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,7 @@ public class ValidationsTasksPanel extends FramedPanel implements
|
||||||
@Override
|
@Override
|
||||||
public void render(Context context, String value, SafeHtmlBuilder sb) {
|
public void render(Context context, String value, SafeHtmlBuilder sb) {
|
||||||
sb.appendHtmlConstant("<span title='"
|
sb.appendHtmlConstant("<span title='"
|
||||||
+ SafeHtmlUtils.htmlEscape(value) + "'>" + value
|
+ SafeHtmlUtils.htmlEscape(value) + "'>" + SafeHtmlUtils.htmlEscape(value)
|
||||||
+ "</span>");
|
+ "</span>");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue