public function escapeHtml($string) {
        $string = $this->convertNewlines($string);

        if ($this->getConfig('escapeHtml')) {
            $string = $this->escape($string, ENT_NOQUOTES);
        }

        return $string;
    }
public function escapeHtml($string) {
        $string = $this->convertNewlines($string);

        if ($this->getConfig('escapeHtml')) {
            $string = $this->escape($string, ENT_NOQUOTES);
        }

        return $string;
    }
public function escapeHtml ( $ string ) { $ string = $ this -> convertNewlines ( $ string ) ; if ( $ this -> getConfig ( 'escapeHtml' ) ) { $ string = $ this -> escape ( $ string , ENT_NOQUOTES ) ; } return $ string ; }
Normalize line feeds and escape HTML characters.

@param string $string
@return string
Normalize line feeds and escape HTML characters .