Symfony\Component\Templating\PhpEngine::escape
Escapes a string by using the current charset.
Signature
public function escape(mixed
$value,
[string
$context = 'html'] )
Parameters
$value
— mixed- A variable to escape
$context
— string- The context name
Returns
- string
- The escaped value