/** * {@inheritdoc} */ protected function update() { if ($this->response !== null) { $this->headers->set('Content-Type', 'text/html; charset=UTF-8'); $output = preg_replace("/"/", '\\"', htmlspecialchars($this->data, ENT_NOQUOTES, 'UTF-8', true)); return $this->setContent('<html><body><textarea>' . $output . '</textarea></body></html>'); } else { return parent::update(); } }
protected function update() { $this->headers->set('Content-Type', 'application/json;charset=utf-8'); return parent::update(); }