public interface EscapingStrategy
A strategy for determining how to escape a variable ({{variable}}
)..
Usage:
EscapingStrategy escapingStrategy = new EscapingStrategy() { public String escape(final CharSequence value) { // return the character sequence escaped however you want } }; Handlebars handlebars = new Handlebars().with(escapingStrategy);
Modifier and Type | Interface and Description |
---|---|
static class |
EscapingStrategy.Hbs
Handlebars escaping strategy.
|
Modifier and Type | Field and Description |
---|---|
static EscapingStrategy |
CSV
Escape variable for CSV.
|
static EscapingStrategy |
DEF
Default escaping strategy.
|
static EscapingStrategy |
HBS3
Like
HTML_ENTITY but ignores = . |
static EscapingStrategy |
HBS4
Default escaping strategy for Handlebars 4.x .
|
static EscapingStrategy |
HTML_ENTITY
The default HTML Entity escaping strategy.
|
static EscapingStrategy |
JS
Escape variable for JavaScript.
|
static EscapingStrategy |
NOOP
NOOP escaping.
|
static EscapingStrategy |
XML
Escape variable for XML.
|
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
escape(java.lang.CharSequence value)
Escape the
CharSequence . |
static final EscapingStrategy HTML_ENTITY
static final EscapingStrategy HBS3
HTML_ENTITY
but ignores =
.static final EscapingStrategy HBS4
static final EscapingStrategy CSV
static final EscapingStrategy XML
static final EscapingStrategy JS
static final EscapingStrategy NOOP
static final EscapingStrategy DEF
Copyright © 2010 - 2020 Adobe. All Rights Reserved