private function transformToHtml($data, $hypertextRoutes = [])
    {
        // Generate the html for the hypertext routes
        $hypertextHtml = $this->getHypertextHtml($hypertextRoutes);

        // Check if the data is not an array
        if (!is_array($data)) {
            return "<p>{$data}</p>\n{$hypertextHtml}";
        }

        // Generate the html table
        $html = "<table style=\"border: 1px solid black;\">";
        foreach ($data as $k => $v) {
            if (is_array($v)) {
                // Recursively transform underlying data
                $html .= "<tr><td style=\"border: 1px solid black; font-weight: bold;\">{$k}:</td><td style=\"border: 1px solid black;\">{$this->transformToHtml($v)}</td></tr>";
            } else {
                $html .= "<tr><td style=\"border: 1px solid black; font-weight: bold;\">{$k}:</td><td style=\"border: 1px solid black;\">{$v}</td></tr>";
            }
        }

        // Add the hypertext html
        $html .= "<tr><td style=\"border: 1px solid black; font-weight: bold;\">Hypertext:</td><td style=\"border: 1px solid black;\">{$hypertextHtml}</td></tr>";
        $html .= "</table>";
        return $html;
    }