com.google.gwt.safehtml.shared.HtmlSanitizer |
Known Indirect Subclasses
|
Class Overview
Sanitizes untrusted HTML.
Note on usage: SafeHtml should be used to ensure user input is not executed
in the browser. SafeHtml should not be used to sanitize input before sending
it to the server.
Public Methods
public
abstract
SafeHtml
sanitize
(String html)
Sanitizes a string into SafeHtml
.
Parameters
html
| String containing untrusted HTML. |
Returns
- Contents of
html
, sanitized according to the
policy implemented by this sanitizer.