public function html(string $body): ResponseInterface
    {
        $response = $this->responseFactory->createResponse();
        $response->getBody()->write($body);

        return $response->withHeader('Content-type', 'text/html; charset=UTF-8');
    }
public function html(string $body): ResponseInterface
    {
        $response = $this->responseFactory->createResponse();
        $response->getBody()->write($body);

        return $response->withHeader('Content-type', 'text/html; charset=UTF-8');
    }
public function html ( string $ body ) : ResponseInterface { $ response = $ this -> responseFactory -> createResponse ( ) ; $ response -> getBody ( ) -> write ( $ body ) ; return $ response -> withHeader ( 'Content-type' , 'text/html; charset=UTF-8' ) ; }
Write html content into response and set content-type header.

@param string $body

@return ResponseInterface
Write html content into response and set content - type header .