src/View/Helper/HtmlElementTrait.php
public function escapeHtmlAttribute($attribute)
    {
        if (!$this->escapeHtmlAttrHelper) {
            $this->escapeHtmlAttrHelper = $this->getView()->plugin('escapehtmlattr');
            if (!$this->escapeHtmlAttrHelper instanceof EscapeHtmlAttr) {
                throw new Exception\RuntimeException('Helper not loaded: escapeHtmlAttr');
            }
        }
        return $this->escapeHtmlAttrHelper->__invoke($attribute);
    }
public function escapeHtmlAttribute($attribute)
    {
        if (!$this->escapeHtmlAttrHelper) {
            $this->escapeHtmlAttrHelper = $this->getView()->plugin('escapehtmlattr');
            if (!$this->escapeHtmlAttrHelper instanceof EscapeHtmlAttr) {
                throw new Exception\RuntimeException('Helper not loaded: escapeHtmlAttr');
            }
        }
        return $this->escapeHtmlAttrHelper->__invoke($attribute);
    }
public function escapeHtmlAttribute ( $ attribute ) { if ( ! $ this -> escapeHtmlAttrHelper ) { $ this -> escapeHtmlAttrHelper = $ this -> getView ( ) -> plugin ( 'escapehtmlattr' ) ; if ( ! $ this -> escapeHtmlAttrHelper instanceof EscapeHtmlAttr ) { throw new Exception \ RuntimeException ( 'Helper not loaded: escapeHtmlAttr' ) ; } } return $ this -> escapeHtmlAttrHelper -> __invoke ( $ attribute ) ; }
Escape html attribute using view helper

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