Merge pull request from GHSA-xv83-x443-7rmw

* Escape HTML for plaintext search results

* Add tests
This commit is contained in:
Michael Telatynski 2023-04-25 09:30:32 +01:00 committed by GitHub
parent 619a9e8542
commit 961b843662
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 9 deletions

View file

@ -71,7 +71,7 @@ export default class SearchResultTile extends React.Component<IProps> {
for (let j = 0; j < timeline.length; j++) {
const mxEv = timeline[j];
let highlights;
let highlights: string[] | undefined;
const contextual = !this.props.ourEventsIndexes.includes(j);
if (!contextual) {
highlights = this.props.searchHighlights;