Esempio n. 1
0
 protected function element($tagName, $attributes, $content)
 {
     $tagName = \arc\html::name($tagName);
     $el = '<' . $tagName;
     $el .= $this->getAttributes($attributes);
     if ($this->canHaveContent($tagName)) {
         $el .= '>' . self::indent($content, $this->writer->indent, $this->writer->newLine);
         $el .= '</' . $tagName . '>';
     } else {
         $el .= '>';
     }
     return $el;
 }