Package com.google.gwt.safehtml.shared
Shared classes for creating safe HTML content.
-
Interface Summary Interface Description HtmlSanitizer Sanitizes untrusted HTML.SafeHtml An object that implements this interface encapsulates HTML that is guaranteed to be safe to use (with respect to potential Cross-Site-Scripting vulnerabilities) in an HTML context.SafeUri An object that implements this interface encapsulates a URI that is guaranteed to be safe to use (with respect to potential Cross-Site-Scripting vulnerabilities) in a URL context, for example in a URL-typed attribute in an HTML document. -
Class Summary Class Description OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml A string wrapped as an object of typeSafeHtml
.SafeHtmlBuilder A builder that facilitates the building up of XSS-safe HTML from text snippets.SafeHtmlHostedModeUtils SafeHtml utilities whose implementation differs between Development and Production Mode.SafeHtmlString A string wrapped as an object of typeSafeHtml
.SafeHtmlUtils Utility class containing static methods for escaping and sanitizing strings.SafeUriHostedModeUtils SafeUri utilities whose implementation differs between Development and Production Mode.SafeUriString A string wrapped as an object of typeSafeUri
.SimpleHtmlSanitizer A simple and relatively inexpensive HTML sanitizer.UriUtils Utility class containing static methods for validating and sanitizing URIs.