Example #1
0
File: HTML.php Project: techart/tao
 public function assign_to_object($form, $object, $name, $data)
 {
     parent::assign_to_object($form, $object, $name, $data);
     $value = $object[$name];
     if (!empty($value)) {
         if (!isset($this->data['htmlpurifier']) || $this->data['htmlpurifier']) {
             $object[$name] = Text_Process::process($value, 'htmlpurifier');
         } else {
             $object[$name] = $value;
         }
     }
 }
Example #2
0
 protected function stdunset($data)
 {
     $res = parent::stdunset($data);
     return $this->punset($res, 'formats', 'switch style', 'extra_formats', 'teaser split');
 }