protected function escapeHtml(string $str): string
    {
        return htmlspecialchars(
            $str,
            ENT_QUOTES | ENT_SUBSTITUTE,
            $this->charset
        );
    }
protected function escapeHtml(string $str): string
    {
        return htmlspecialchars(
            $str,
            ENT_QUOTES | ENT_SUBSTITUTE,
            $this->charset
        );
    }
protected function escapeHtml ( string $ str ) : string { return htmlspecialchars ( $ str , ENT_QUOTES | ENT_SUBSTITUTE , $ this -> charset ) ; }
Escape HTML.

@param string $str

@return string
Escape HTML .