aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/assistant/History.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/assistant/History.qml')
-rw-r--r--desktop/assistant/History.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/assistant/History.qml b/desktop/assistant/History.qml
index 114ab2b..709e1a6 100644
--- a/desktop/assistant/History.qml
+++ b/desktop/assistant/History.qml
@@ -92,8 +92,9 @@ Rectangle {
// A list row has its date; a search row its snippet.
text: r.modelData.snippet !== undefined
// Backticks go: a match inside a code span would
- // show its ** markers literally.
- ? r.modelData.snippet.replace(/\s+/g, " ").replace(/`/g, "")
+ // show its ** markers literally. Sanitized like any
+ // model output: a snippet can hold a remote image.
+ ? Notify.sanitize(r.modelData.snippet.replace(/\s+/g, " ").replace(/`/g, ""))
: new Date(r.modelData.updated * 1000).toLocaleString(Qt.locale(), Locale.ShortFormat)
textFormat: r.modelData.snippet !== undefined ? Text.MarkdownText : Text.PlainText
elide: Text.ElideRight