Defines a new escaper to be used via the escape filter.
string $strategy The strategy name that should be used as a strategy in the escape call:
callable(string $string, string $charset): string $callable A valid PHP callable:
public function setEscaper($strategy, callable $callable) { $this->escapers[$strategy] = $callable; }