src/View.php
public function toHtml($context = null): string
    {
        return wp_kses(
            $this->unsafeRender($context),
            $this->allowedHtml
        );
    }
public function toHtml($context = null): string
    {
        return wp_kses(
            $this->unsafeRender($context),
            $this->allowedHtml
        );
    }
public function toHtml ( $ context = null ) : string { return wp_kses ( $ this -> unsafeRender ( $ context ) , $ this -> allowedHtml ) ; }
Convert the view to safe HTML.

@param mixed $context Optional. Context object for which to render the view.

@return string
Convert the view to safe HTML .