public function getTextData() { $str = new LinkedStringBuilder(); $str->append("<html>"); $str->append("<head>"); $this->addGuide($str); $str->append("</head>"); $str->append("<body>"); $this->resolveFilepos($str, self::START_LINK); $str->append("<h1>" . $this->settings["title"] . "</h1>"); $entries = $this->addText($str); $this->addTOC($str, $entries); $str->append("</body>"); $str->append("</html>"); return $str->build(); }