Skip to content

Commit d392424

Browse files
authored
Smart Search: Extend lists of elements to space out (#45464)
1 parent 4b2fe48 commit d392424

File tree

1 file changed

+3
-3
lines changed
  • administrator/components/com_finder/src/Indexer/Parser

1 file changed

+3
-3
lines changed

administrator/components/com_finder/src/Indexer/Parser/Html.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ public function parse($input)
7171
// Add a space before both the OPEN and CLOSE tags of BLOCK and LINE BREAKING elements,
7272
// e.g. 'all<h1><em>m</em>obile List</h1>' will become 'all mobile List'
7373
$input = preg_replace('/(<|<\/)(' .
74-
'address|article|aside|blockquote|br|canvas|dd|div|dl|dt|' .
75-
'fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|li|' .
76-
'main|nav|noscript|ol|output|p|pre|section|table|tfoot|ul|video' .
74+
'address|article|aside|blockquote|br|canvas|cite|code|data|details|dd|div|dl|dt|' .
75+
'fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|li|label|' .
76+
'main|nav|noscript|ol|option|output|p|pre|section|table|td|tfoot|th|ul|video' .
7777
')\b/i', ' $1$2', $input);
7878

7979
// Strip HTML tags.

0 commit comments

Comments
 (0)