| Package | Description |
|---|---|
| com.google.template.soy.internal.base |
Internal base libraries.
|
| com.google.template.soy.shared.restricted |
| Modifier and Type | Class and Description |
|---|---|
class |
CharEscaper
An object that converts literal text into a format safe for inclusion in a
particular context (such as an XML document).
|
class |
PercentEscaper
A
UnicodeEscaper that escapes some set of Java characters using
the URI percent encoding scheme. |
class |
UnicodeEscaper
An
Escaper that converts literal text into a format safe for
inclusion in a particular context (such as an XML document). |
| Modifier and Type | Method and Description |
|---|---|
static Escaper |
CharEscapers.uriEscaper(boolean plusForSpace)
Returns a
Escaper instance that escapes Java characters so they can
be safely included in URIs. |
| Modifier and Type | Class and Description |
|---|---|
static class |
EscapingConventions.CrossLanguageStringXform
A transformation on strings that preserves some correctness or safety properties.
|
static class |
EscapingConventions.EscapeCssString
Implements the
|escapeCssString directive which allows arbitrary content to be
included in a CSS quoted string or identifier. |
static class |
EscapingConventions.EscapeHtml
Implements the
|escapeHtml directive. |
static class |
EscapingConventions.EscapeHtmlNospace
Implements the
|escapeHtmlNoSpace directive which allows arbitrary content
to be included in the value of an unquoted HTML attribute. |
static class |
EscapingConventions.EscapeJsRegex
Implements the
|escapeJsRegex directive which allows arbitrary content
to be included inside a JavaScript regular expression. |
static class |
EscapingConventions.EscapeJsString
Implements the
|escapeJsString directive which allows arbitrary content
to be included inside a quoted JavaScript string. |
static class |
EscapingConventions.EscapeUri
Implements the
|escapeUri directive which allows arbitrary content to be included in a
URI regardless of the string delimiters of the the surrounding language. |
static class |
EscapingConventions.FilterCssValue
Implements the
|filterCssValue directive which filters out strings that are not valid
CSS property names, keyword values, quantities, hex colors, or ID or class literals. |
static class |
EscapingConventions.FilterHtmlAttributes
Implements the
|filterHtmlAttributes directive which filters out identifiers that
can't appear as part of an HTML tag or attribute name. |
static class |
EscapingConventions.FilterHtmlElementName
Implements the
|filterHtmlElementName directive which filters out identifiers that
can't appear as part of an HTML tag or attribute name. |
static class |
EscapingConventions.FilterImageDataUri
Like
EscapingConventions.FilterNormalizeUri except only accepts data URI's that contain an image. |
static class |
EscapingConventions.FilterNormalizeUri
Like
EscapingConventions.NormalizeUri but filters out dangerous protocols. |
static class |
EscapingConventions.NormalizeHtml
A directive that encodes any HTML special characters that can appear in RCDATA unescaped but
that can be escaped without changing semantics.
|
static class |
EscapingConventions.NormalizeHtmlNospace
A directive that encodes any HTML special characters and unquoted attribute terminators that
can appear in RCDATA unescaped but that can be escaped without changing semantics.
|
static class |
EscapingConventions.NormalizeUri
Implements the
|normalizeUri directive which allows arbitrary content to be included
in a URI regardless of the string delimiters of the the surrounding language. |