public class DisableHtmlEscapingDirectiveHandler extends Object implements org.apache.velocity.app.event.ReferenceInsertionEventHandler, org.apache.velocity.util.ContextAware
Disables html escaping of references according to the DisableHtmlEscaping directive.
If the directive is present on the template it will not escape the reference;
Otherwise, it will delegate escaping of the reference to an HtmlAnnotationEscaper handler.
| Constructor and Description |
|---|
DisableHtmlEscapingDirectiveHandler() |
DisableHtmlEscapingDirectiveHandler(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 DisableHtmlEscapingDirectiveHandler()
public DisableHtmlEscapingDirectiveHandler(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.