public class EscapeFilter extends Object implements Filter
| Modifier and Type | Field and Description |
|---|---|
static String |
CSS_ESCAPE_STRATEGY |
static String |
HTML_ESCAPE_STRATEGY |
static String |
JAVASCRIPT_ESCAPE_STRATEGY |
static String |
JSON_ESCAPE_STRATEGY |
static String |
URL_PARAM_ESCAPE_STRATEGY |
| Constructor and Description |
|---|
EscapeFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEscapingStrategy(String name,
EscapingStrategy strategy) |
Object |
apply(Object inputObject,
Map<String,Object> args,
PebbleTemplate self,
EvaluationContext context,
int lineNumber) |
List<String> |
getArgumentNames() |
String |
getDefaultStrategy() |
void |
setDefaultStrategy(String defaultStrategy) |
public static final String HTML_ESCAPE_STRATEGY
public static final String JAVASCRIPT_ESCAPE_STRATEGY
public static final String CSS_ESCAPE_STRATEGY
public static final String URL_PARAM_ESCAPE_STRATEGY
public static final String JSON_ESCAPE_STRATEGY
public List<String> getArgumentNames()
getArgumentNames in interface NamedArgumentspublic Object apply(Object inputObject, Map<String,Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber) throws PebbleException
apply in interface FilterPebbleExceptionpublic String getDefaultStrategy()
public void setDefaultStrategy(String defaultStrategy)
public void addEscapingStrategy(String name, EscapingStrategy strategy)
Copyright © 2019. All rights reserved.