public function getContentToC(ContentInterface $content) { $html = ''; $html .= '<li><a href="' . $content->getAnchorPath() . '">' . $content->getTitle() . '</a></li>' . "\r\n"; $sections = $content->getSections(); if ($sections) { $html .= $this->getSectionHtml($sections, $content); } // $html .= "<br /><br />" . "\r\n"; return $html; }