public function endElement($parser, $name)
    {
        switch ($name) {
            case 'P':
                $this->appendBlockText("\n\n");

                break;
            case 'UL':
                $this->appendBlockText("\n\n");

                break;
            case 'LI':
                $this->appendBlockText("\n");

                break;
            case 'DIV':
                $this->appendBlockText("\n\n\n");

                break;
            case 'A':
                $attrs = $this->blockAttributesStack->top();

                if (isset($attrs['HREF'])) {
                    $this->appendBlockText(" ({$attrs['HREF']})");
                }
        }

        $blockContent = $this->blockFinished();

        if (count($this->transformedTextStack)) {
            $this->appendBlockText($blockContent);
        } else {
            $this->text .= $blockContent;
        }
    }