src/View/Helper/HtmlElementTrait.php
public function escapeHtml($text)
    {
        if (!$this->escapeHtmlHelper) {
            $this->escapeHtmlHelper = $this->getView()->plugin('escapehtml');
            if (!$this->escapeHtmlHelper instanceof EscapeHtml) {
                throw new Exception\RuntimeException('Helper not loaded: escapeHtml');
            }
        }
        return $this->escapeHtmlHelper->__invoke($text);
    }
public function escapeHtml($text)
    {
        if (!$this->escapeHtmlHelper) {
            $this->escapeHtmlHelper = $this->getView()->plugin('escapehtml');
            if (!$this->escapeHtmlHelper instanceof EscapeHtml) {
                throw new Exception\RuntimeException('Helper not loaded: escapeHtml');
            }
        }
        return $this->escapeHtmlHelper->__invoke($text);
    }
public function escapeHtml ( $ text ) { if ( ! $ this -> escapeHtmlHelper ) { $ this -> escapeHtmlHelper = $ this -> getView ( ) -> plugin ( 'escapehtml' ) ; if ( ! $ this -> escapeHtmlHelper instanceof EscapeHtml ) { throw new Exception \ RuntimeException ( 'Helper not loaded: escapeHtml' ) ; } } return $ this -> escapeHtmlHelper -> __invoke ( $ text ) ; }
Escape html using view helper

@param  string $text
@return string
Escape html using view helper