private function getElementValue(AbstractClassContent $content, Page $page)
    {
        $draft = $this->releaseDraft($content);

        if ($content instanceof File) {
            $value = $content->path;
        } elseif ($content instanceof Keyword) {
            $value = $this->getKeyword($content);
        } else {
            $value = trim(str_replace(array("\n", "\r"), '', strip_tags(''.$content)));
        }

        $this->setMainNode($content, $page);
        $this->restoreDraft($content, $draft);

        return $value;
    }