Modifier and Type | Method and Description |
---|---|
void |
JSilver.registerGlobalEscaper(String name,
TextFilter escaper)
Registers a global escaper.
|
void |
JSilver.registerGlobalFunction(String name,
TextFilter textFilter)
Registers a global TextFilter as function that can be used from any template.
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,TextFilter> |
FunctionRegistry.escapers |
Modifier and Type | Method and Description |
---|---|
void |
FunctionRegistry.registerEscapeMode(String name,
TextFilter escaper)
Registers an escaper, that is called when executing a <?cs escape ?> command.
|
void |
FunctionRegistry.registerFunction(String name,
TextFilter textFilter)
Register a TextFilter as a Function that takes a single String argument and returns the
filtered value.
|
void |
FunctionRegistry.registerFunction(String name,
TextFilter textFilter,
boolean isEscaper) |
Modifier and Type | Class and Description |
---|---|
class |
HtmlEscapeFunction
This class HTML escapes a string in the same way as the ClearSilver html_escape function.
|
class |
JsEscapeFunction
This Javascript escapes the string so it will be valid data for placement into a Javascript
string.
|
class |
JsValidateUnquotedLiteral
This function will be used to sanitize variables introduced into javascript that are not string
literals.
|
class |
NullEscapeFunction
Returns the input string without any modification.
|
class |
SimpleEscapingFunction
Base class to make writing fast, simple escaping functions easy.
|
class |
StyleEscapeFunction
This function will be used to sanitize variables in 'style' attributes.
|
class |
UrlEscapeFunction
This URL encodes the string.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseUrlValidateFunction
Validates that a given string is either something that looks like a relative URI, or looks like
an absolute URI using one of a set of allowed schemes (http, https, ftp, mailto).
|
class |
CssUrlValidateFunction
Validates that input string is a valid URI.
|
class |
HtmlStripFunction
This class implements the html_strip function.
|
class |
HtmlUrlValidateFunction
Validates that a given string is a valid URI and return the HTML escaped string if it is.
|
class |
TextHtmlFunction
This class implements the ClearSilver text_html function.
|
Copyright © 2010–2013 Google. All rights reserved.