diff --git a/packages/app-desktop/plugins/GotoAnything.tsx b/packages/app-desktop/plugins/GotoAnything.tsx index fdad2636b0..ae9d0d0e06 100644 --- a/packages/app-desktop/plugins/GotoAnything.tsx +++ b/packages/app-desktop/plugins/GotoAnything.tsx @@ -23,6 +23,7 @@ import Resource from '@joplin/lib/models/Resource'; import { NoteEntity, ResourceEntity } from '@joplin/lib/services/database/types'; import Dialog from '../gui/Dialog'; import AsyncActionQueue from '@joplin/lib/AsyncActionQueue'; +import { htmlentities } from '@joplin/utils/html'; const logger = Logger.create('GotoAnything'); @@ -555,7 +556,7 @@ class DialogComponent extends React.PureComponent { }; const titleHtml = item.fragments - ? `${item.title}` + ? `${htmlentities(item.title)}` : wrapKeywordMatches(item.title); const fragmentsHtml = !item.fragments ? null : wrapKeywordMatches(item.fragments);