/** * @param \Aura\Html\Escaper $escaper * @param string $encoding */ public function __construct(AuraHtmlEscaper $escaper, $encoding = 'utf-8') { $this->escaper = $escaper; $this->encoding = strtolower($encoding); $this->escaper->setEncoding($this->encoding); $this->escapers[$this->encoding] = $escaper; }