-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
6.2
-
None
When dropping a JCR query, the found row contains a excerpt snipped of the searched term highlighted and text before and after the found therm.
The excerpt is done and processed by out class info.magnolia.jackrabbit.lucene.SearchHTMLExcerpt .
Problem:
If pages contain RichText content, containing a lot of li & ul tags, it is likely that the excerpt snipped will have a cut off </li> or </ul> tag form the content.
So in the search results displaying, there is a wrong </li> or </ul> markup.
Also it can happen, that at the end of the excerpt snipped a lead <li> or <ul> is fetched from the content, that are never closed.
Solution:
The class SearchHTMLExcerpt should check for wrong closing tags, and for opening tags that are never closed, and remove them from he excerpt snippet.
- is related to
-
MGNLDEMO-144 Make the w3 validation proof: Mainly the search result page.
- Closed
-
MGNLDEMO-135 Search result page might brake layout due to broken HTML markup
- Closed