From ef93a177101c1781d006e3d8cf1d72330a1ad943 Mon Sep 17 00:00:00 2001 From: buttle Date: Sat, 18 Sep 2021 22:10:50 +0200 Subject: [PATCH] makes text searchable --- src/Site/BlockLayout/SimpleMDText.php | 7 +++++++ 1 file changed, 7 insertions(+) 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)); + } + + }