121 if ( $this->header ===
null ) {
122 $titleHtml = htmlspecialchars( HttpStatus::getMessage( $this->httpCode ) );
123 } elseif ( $this->header instanceof Message ) {
124 $titleHtml = $this->header->escaped();
126 $titleHtml = htmlspecialchars( $this->header );
129 if ( $this->content instanceof Message ) {
130 $contentHtml = $this->content->escaped();
132 $contentHtml = nl2br( htmlspecialchars( $this->content ) );
135 return "<!DOCTYPE html>\n" .
136 "<html><head><title>$titleHtml</title></head>\n" .
137 "<body><h1>$titleHtml</h1><p>$contentHtml</p></body></html>\n";