Esempio n. 1
0
 /**
  * {@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();
     }
 }
Esempio n. 2
0
 protected function update()
 {
     $this->headers->set('Content-Type', 'application/json;charset=utf-8');
     return parent::update();
 }