Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Symfony
Component
Templating
PhpEngine
setEscaper
Symfony\Component\Templating\PhpEngine::setEscaper PHP Method
PhpEngine Class Documentation
Show file
Open project: pmjones/php-framework-benchmarks
setEscaper()
public
method
Adds an escaper for the given context.
public
setEscaper
(
string
$context
,
mixed
$escaper
)
$context
string
The escaper context (html, js, ...)
$escaper
mixed
A PHP callable
public function setEscaper($context, $escaper) { $this->escapers[$context] = $escaper; }
PhpEngine
__construct
addGlobal
addHelpers
convertEncoding
escape
evaluate
exists
extend
get
getCharset
getEscaper
getGlobals
getLoader
has
initializeEscapers
load
offsetExists
offsetGet
offsetSet
offsetUnset
render
set
setCharset
setEscaper
setHelpers
supports