Ejemplo n.º 1
0
 public function modify(Container $di)
 {
     Escaper::setStatic($di->get('aura/html:escaper'));
 }
 /**
  *
  * Constructor.
  *
  * @param string $encoding The encoding for the escapers.
  *
  * @param int $flags The `htmlspecialchars()` flags for the escapers.
  *
  */
 public function __construct($encoding = null, $flags = null)
 {
     $escaper_factory = new EscaperFactory($encoding, $flags);
     $this->escaper = $escaper_factory->newInstance();
     Escaper::setStatic($this->escaper);
 }