public function htmlEscape()
    {
        if ($this->getParameter('value') == null)
            return;

        return str_replace('%', '&#37;', htmlentities($this->getParameter('value'), ENT_QUOTES, 'UTF-8', false));
    }
public function htmlEscape()
    {
        if ($this->getParameter('value') == null)
            return;

        return str_replace('%', '&#37;', htmlentities($this->getParameter('value'), ENT_QUOTES, 'UTF-8', false));
    }
public function htmlEscape ( ) { if ( $ this -> getParameter ( 'value' ) == null ) return ; return str_replace ( '%' , '&#37;' , htmlentities ( $ this -> getParameter ( 'value' ) , ENT_QUOTES , 'UTF-8' , false ) ) ; }
HTML-Escapes the specified parameter.
Converts all html chars into their entities equivalent

Expected Param:
value string

@return string
HTML - Escapes the specified parameter . Converts all html chars into their entities equivalent