public function setEscaper($context, callable $escaper)
    {
        $this->escapers[$context] = $escaper;
        self::$escaperCache[$context] = [];
    }
public function setEscaper($context, callable $escaper)
    {
        $this->escapers[$context] = $escaper;
        self::$escaperCache[$context] = [];
    }
public function setEscaper ( $ context , callable $ escaper ) { $ this -> escapers [ $ context ] = $ escaper ; self :: $ escaperCache [ $ context ] = [ ] ; }
Adds an escaper for the given context.

@param string   $context The escaper context (html, js, ...)
@param callable $escaper A PHP callable
Adds an escaper for the given context .