Fork me on GitHub

EscapeFilter

In package com.mitchellbosecke.pebble.extension.escaper

public class EscapeFilter extends Object implements Filter

Fields

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

Constructors

public EscapeFilter()
Parameters:
  • No parameters

Methods

public List<String> getArgumentNames()
Parameters:
  • No parameters
public Object apply(Object inputObject, Map<String, Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber)
Parameters:
public String getDefaultStrategy()
Parameters:
  • No parameters
public void setDefaultStrategy(String defaultStrategy)
Parameters:
  • String defaultStrategy
public void addEscapingStrategy(String name, EscapingStrategy strategy)
Parameters: