Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @param \Zend\View\Helper\EscapeHtmlAttr $escapeHtmlAttr EscapeHtmlAttr helper
  * @param \Zend\View\Helper\Doctype $doctype Doctype helper
  */
 public function __construct(\Zend\View\Helper\EscapeHtmlAttr $escapeHtmlAttr, \Zend\View\Helper\Doctype $doctype)
 {
     $this->_escapeHtmlAttr = $escapeHtmlAttr;
     if (!$doctype->isXhtml()) {
         $this->_emptyTags = array('area', 'base', 'br', 'col', 'hr', 'img', 'input', 'link', 'meta', 'param');
         if ($doctype->isHtml5()) {
             $this->_emptyTags = array_merge($this->_emptyTags, array('command', 'keygen', 'source'));
         }
     }
 }