makes text searchable

This commit is contained in:
buttle 2021-09-18 22:10:50 +02:00
parent 9e6fcfaf13
commit ef93a17710
1 changed files with 7 additions and 0 deletions

View File

@ -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));
}
}