Use the same sanitize method for advanced and basic search
What does this MR do and why?
Fixes an issue where HTML is being displayed in search results for issues
Update specs
Related to #338984 (closed)
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
Note: gdk must have Elasticsearch setup, Advanced Search enabled, and data indexed to test this locally
- add a new issue with the following text
Click to expand
<h2 data-sourcepos="11:1-11:26" dir="auto"><a id="user-content-additional-information" class="anchor" href="#additional-information" aria-hidden="true"></a>Additional information:</h2><textarea data-update-url="/freepascal.org/fpc/source/-/issues/6163.json" dir="auto" data-testid="textarea" class="hidden js-task-list-field"></textarea>
- search for the issue
- verify the search results have does not render the html
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.