@ParametersAreNonnullByDefault public final class UnsafeSanitizedContentOrdainer extends Object
We suggest you limit your usage of this to just a few files in your code base. Create a small set of utility files that generate and sanitize at the same time. Example utilities:
| Modifier and Type | Method and Description |
|---|---|
static SanitizedContent |
ordainAsSafe(String value,
SanitizedContent.ContentKind kind)
Faithfully assumes the provided value is "safe" and marks it not to be re-escaped.
|
static SanitizedContent |
ordainAsSafe(String value,
SanitizedContent.ContentKind kind,
Dir dir)
Faithfully assumes the provided value is "safe" and marks it not to be re-escaped.
|
public static SanitizedContent ordainAsSafe(String value, SanitizedContent.ContentKind kind)
public static SanitizedContent ordainAsSafe(String value, SanitizedContent.ContentKind kind, @Nullable Dir dir)