- java.lang.Object
-
- com.samskivert.mustache.Escapers
-
public class Escapers extends Object
Defines some standardMustache.Escapers.
-
-
Field Summary
Fields Modifier and Type Field Description static Mustache.EscaperHTMLEscapes HTML entities.static Mustache.EscaperNONEAn 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.Escapersimple(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(String[]... repls)
Returns an escaper that replaces a list of text sequences with canned replacements.- Parameters:
repls- a list of(text, replacement)pairs.
-
-