public interface HasSafeHtml
SafeHtml object.| Modifier and Type | Method and Description |
|---|---|
void |
setHTML(SafeHtml html)
Sets this object's contents via known-safe HTML.
|
void setHTML(SafeHtml html)
The object will behave exactly the same as when a widget's
com.google.gwt.user.client.ui.HasHTML#setHTML(String) method is
invoked; however the SafeHtml passed to this method observes the
contract that it can be used in an HTML context without causing unsafe
script execution. Thus, unlike
com.google.gwt.user.client.ui.HasHTML#setHTML(String), using this
method cannot result in Cross-Site Scripting security vulnerabilities.
html - the object's new HTML, represented as a SafeHtml objectCopyright © 2018. All rights reserved.