public function getEscaper($context)
    {
        if (!isset($this->escapers[$context])) {
            throw new \InvalidArgumentException(sprintf('No registered escaper for context "%s".', $context));
        }

        return $this->escapers[$context];
    }
public function getEscaper($context)
    {
        if (!isset($this->escapers[$context])) {
            throw new \InvalidArgumentException(sprintf('No registered escaper for context "%s".', $context));
        }

        return $this->escapers[$context];
    }
public function getEscaper ( $ context ) { if ( ! isset ( $ this -> escapers [ $ context ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'No registered escaper for context "%s".' , $ context ) ) ; } return $ this -> escapers [ $ context ] ; }
Gets an escaper for a given context.

@param string $context The context name

@return callable A PHP callable

@throws \InvalidArgumentException
Gets an escaper for a given context .