| Package | Description |
|---|---|
| com.google.template.soy.parsepasses.contextautoesc |
A pass that modifies a SoyFile to add escape directives where necessary based on a contextual
examination of template
print commands. |
| Modifier and Type | Field and Description |
|---|---|
static Context |
Context.HTML_PCDATA
The normal context for HTML where a less than opens a tag and an ampersand starts an HTML
entity.
|
| Modifier and Type | Method and Description |
|---|---|
Context |
Context.derive(Context.JsFollowingSlash slashType)
Returns a context that differs only in the following slash.
|
Context |
Context.derive(Context.UriPart uriPart)
Returns a context that differs only in the uri part.
|
Context |
Context.derive(HtmlContext state)
Returns a context that differs only in the state.
|
Context |
Context.getContextAfterDynamicValue()
The context after printing a correctly-escaped dynamic value in this context.
|
static Context |
Context.getStartContextForContentKind(SanitizedContentKind contentKind)
Returns the autoescape
Context that produces sanitized content of the given SanitizedContentKind. |
Context |
ContextualAutoescaper.getTemplateEndContext(String templateName)
Null if no typing has been done for the named template, or otherwise the context after a call
to the named template.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
DerivedTemplateUtils.getSuffix(Context startContext)
The suffix as described above.
|