Example #1
0
File: Tag.php Project: xiphe/html
 /**
  * Echoes the tag content.
  *
  * @return void
  */
 public function content()
 {
     if (!$this->_contentPrinted) {
         if (!$this->inlineInner) {
             Generator::tabs();
         }
         if ($this->hasOption('cleanContent') || Config::get('clean') && !$this->hasOption('doNotCleanContent')) {
             echo trim(Cleaner::getClean($this->content));
         } else {
             echo $this->content;
         }
         if (!$this->inlineInner) {
             Generator::lineBreak();
         }
         $this->_contentPrinted = true;
     }
 }