|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface HasSafeHtml
An object that implements this interface contains text with HTML markup,
which can be set with the Cross-Site-Scripting-safe HTML markup encapsulated
in a SafeHtml object.
| Method Summary | |
|---|---|
void |
setHTML(SafeHtml html)
Sets this object's contents via known-safe HTML. |
| Method Detail |
|---|
void setHTML(SafeHtml html)
The object will behave exactly the same as when a widget's
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
HasHTML.setHTML(String), using this
method cannot result in Cross-Site Scripting security vulnerabilities.
html - the object's new HTML, represented as a SafeHtml object
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||