public function getFootnotes($raw = false)
    {
        if ($raw === true)
            return ($this->_footnotes);
        if (empty($this->_footnotes))
            return (null);
        $footnotes = '';
        $index = 1;
        foreach ($this->_footnotes as $note) {
            $id = $this->getParam('footnotesPrefix') . "-$index";
            $noteHtml = "<p class=\"footnote\"><a href=\"#cite_ref-$id\" name=\"cite_note-$id\" id=\"cite_note-$id\">";
            if (is_string($note))
                $noteHtml .= "$index</a>. $note";
            else
                $noteHtml .= htmlspecialchars($note['label']) . "</a>. " . $note['text'];
            $noteHtml .= "</p>\n";
            $footnotes .= $noteHtml;
            $index++;
        }
        $footnotes = "<div class=\"footnotes\">\n$footnotes</div>\n";
        return ($footnotes);
    }