| Package | Description |
|---|---|
| com.google.template.soy.shared.internal |
Internal shared class among multiple backends.
|
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<String,TagWhitelist.OptionalSafeTag> |
TagWhitelist.OptionalSafeTag.FROM_TAG_NAME |
static com.google.common.base.Function<TagWhitelist.OptionalSafeTag,String> |
TagWhitelist.OptionalSafeTag.TO_TAG_NAME |
| Modifier and Type | Method and Description |
|---|---|
static TagWhitelist.OptionalSafeTag |
TagWhitelist.OptionalSafeTag.fromTagName(String tagName) |
static TagWhitelist.OptionalSafeTag |
TagWhitelist.OptionalSafeTag.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TagWhitelist.OptionalSafeTag[] |
TagWhitelist.OptionalSafeTag.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static SanitizedContent |
Sanitizers.cleanHtml(SoyValue value,
Collection<? extends TagWhitelist.OptionalSafeTag> optionalSafeTags)
Normalizes the input HTML while preserving "safe" tags and the known directionality.
|
static SanitizedContent |
Sanitizers.cleanHtml(String value,
Collection<? extends TagWhitelist.OptionalSafeTag> optionalSafeTags)
Normalizes the input HTML while preserving "safe" tags.
|
static SanitizedContent |
Sanitizers.cleanHtml(String value,
Dir contentDir,
Collection<? extends TagWhitelist.OptionalSafeTag> optionalSafeTags)
Normalizes the input HTML of a given directionality while preserving "safe" tags.
|
static LoggingAdvisingAppendable |
Sanitizers.cleanHtmlStreaming(LoggingAdvisingAppendable delegate,
Collection<? extends TagWhitelist.OptionalSafeTag> optionalSafeTags)
Streaming version of
|cleanHtml. |
TagWhitelist |
TagWhitelist.withOptionalSafeTags(Collection<? extends TagWhitelist.OptionalSafeTag> optionalSafeTags) |