diff --git a/src/Site/BlockLayout/SimpleMDText.php b/src/Site/BlockLayout/SimpleMDText.php index 48aed09..8a9440b 100644 --- a/src/Site/BlockLayout/SimpleMDText.php +++ b/src/Site/BlockLayout/SimpleMDText.php @@ -79,4 +79,11 @@ class SimpleMDText extends AbstractBlockLayout 'html' => $parsedown->text($block->dataValue('markdown_text')) ]); } + + public function getFulltextText(PhpRenderer $view, SitePageBlockRepresentation $block) + { + return strip_tags($this->render($view, $block)); + } + + }