public class EnableHtmlEscapingDirectiveHandler extends Object implements org.apache.velocity.app.event.ReferenceInsertionEventHandler, org.apache.velocity.util.ContextAware
Enables html escaping of references according to the EnableHtmlEscaping
directive.
If the directive is present on the template it will escape the reference using a HtmlAnnotationEscaper
handler; Otherwise, it will not escape the reference.
| Constructor and Description |
|---|
EnableHtmlEscapingDirectiveHandler() |
EnableHtmlEscapingDirectiveHandler(org.apache.velocity.app.event.ReferenceInsertionEventHandler htmlEscapingHandler) |
| Modifier and Type | Method and Description |
|---|---|
Object |
referenceInsert(String reference,
Object value) |
void |
setContext(org.apache.velocity.context.Context context) |
void |
setDirectiveChecker(DirectiveChecker directiveChecker)
Sets the DirectiveChecker that will be used.
|
public EnableHtmlEscapingDirectiveHandler()
public EnableHtmlEscapingDirectiveHandler(org.apache.velocity.app.event.ReferenceInsertionEventHandler htmlEscapingHandler)
public void setContext(org.apache.velocity.context.Context context)
setContext in interface org.apache.velocity.util.ContextAwarepublic void setDirectiveChecker(DirectiveChecker directiveChecker)
directiveChecker - a DirectiveCheckerCopyright © 2018 Atlassian. All rights reserved.