- java.lang.Object
-
- com.samskivert.mustache.Escapers
-
public class Escapers extends java.lang.Object
Defines some standardMustache.Escaper
s.
-
-
Field Summary
Fields Modifier and Type Field Description static Mustache.Escaper
HTML
Escapes HTML entities.static Mustache.Escaper
NONE
An escaper that does no escaping.
-
Constructor Summary
Constructors Constructor Description Escapers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Mustache.Escaper
simple(java.lang.String[]... repls)
Returns an escaper that replaces a list of text sequences with canned replacements.
-
-
-
Field Detail
-
HTML
public static final Mustache.Escaper HTML
Escapes HTML entities.
-
NONE
public static final Mustache.Escaper NONE
An escaper that does no escaping.
-
-
Method Detail
-
simple
public static Mustache.Escaper simple(java.lang.String[]... repls)
Returns an escaper that replaces a list of text sequences with canned replacements.- Parameters:
repls
- a list of(text, replacement)
pairs.
-
-