- encode
Encodes the URL. In client code, this method delegates to URL#encode(String) and
then unescapes brac
- fromString
Returns a SafeUri obtained by sanitizing the provided string. The input string
is sanitized using #s
- fromTrustedString
Returns a SafeUri constructed from a trusted string, i.e., without sanitizing
the string. No checks
- extractScheme
Extracts the scheme of a URI.
- encodeAllowEscapes
Encodes the URL, preserving existing %-escapes.
- isSafeUri
Determines if a String is safe to use as the value of a URI-valued HTML
attribute such as src or hre
- sanitizeUri
Sanitizes a URI. This method returns the URI provided if it is safe to use as
the value of a URI-val
- unsafeCastFromUntrustedString
Returns a SafeUri constructed from an untrusted string but without sanitizing
it.Despite this method