Merge pull request from GHSA-xv83-x443-7rmw
* Escape HTML for plaintext search results * Add tests
This commit is contained in:
parent
619a9e8542
commit
961b843662
3 changed files with 55 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue