| Package | Description |
|---|---|
| org.gwtproject.safehtml.client |
Interfaces for creating safe HTML content using templates.
|
| org.gwtproject.safehtml.shared |
Shared classes for creating safe HTML content.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HasSafeHtml.setHTML(SafeHtml html)
Sets this object's contents via known-safe HTML.
|
| Modifier and Type | Class and Description |
|---|---|
class |
OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml
A string wrapped as an object of type
SafeHtml. |
| Modifier and Type | Field and Description |
|---|---|
static SafeHtml |
SafeHtmlUtils.EMPTY_SAFE_HTML
An empty String.
|
| Modifier and Type | Method and Description |
|---|---|
static SafeHtml |
SafeHtmlUtils.fromSafeConstant(String s)
Returns a
SafeHtml constructed from a safe string, i.e., without escaping
the string. |
static SafeHtml |
SafeHtmlUtils.fromString(String s)
Returns a
SafeHtml containing the escaped string. |
static SafeHtml |
SafeHtmlUtils.fromTrustedString(String s)
Returns a
SafeHtml constructed from a trusted string, i.e., without
escaping the string. |
SafeHtml |
SimpleHtmlSanitizer.sanitize(String html) |
SafeHtml |
HtmlSanitizer.sanitize(String html)
Sanitizes a string into
SafeHtml. |
static SafeHtml |
SimpleHtmlSanitizer.sanitizeHtml(String html)
HTML-sanitizes a string.
|
SafeHtml |
SafeHtmlBuilder.toSafeHtml()
Returns the safe HTML accumulated in the builder as a
SafeHtml. |
| Modifier and Type | Method and Description |
|---|---|
SafeHtmlBuilder |
SafeHtmlBuilder.append(SafeHtml html)
Appends the contents of another
SafeHtml object, without applying
HTML-escaping to it. |
Copyright © 2020. All rights reserved.