Пример #1
0
 public function addItem($value)
 {
     // the string contents of an HTML tag should be properly encoded
     if (is_string($value)) {
         $value = $this->encode($value, $this->getEncStrategy());
     }
     parent::addItem($value);
 }