Skip to content

Commit

Permalink
add spaces into getElementsForSearch()
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewandante committed Apr 30, 2021
1 parent 223e81e commit bf16e9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Extensions/ElementalPageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public function getElementsForSearch()
/** @var ElementalArea $area */
$area = $this->owner->$key();
if ($area) {
$output[] = strip_tags($area->forTemplate());
// Replace HTML tags with spaces
$output[] = strip_tags(str_replace('<', ' <', $area->forTemplate()));
}
}
} finally {
Expand Down

0 comments on commit bf16e9b

Please sign in to comment.