Symfony\Component\Templating\PhpEngine::escape PHP 메소드

escape() 공개 메소드

Escapes a string by using the current charset.
public escape ( mixed $value, string $context = 'html' ) : string
$value mixed A variable to escape
$context string The context name
리턴 string The escaped value
    public function escape($value, $context = 'html')
    {
        return call_user_func($this->getEscaper($context), $value);
    }