From a59fe2a0514d8c3da42134e6e43d0e221f6119fc Mon Sep 17 00:00:00 2001 From: llama <100429699+iamllama@users.noreply.github.com> Date: Tue, 29 Apr 2025 07:18:56 +0800 Subject: [PATCH] Fix unescaped deck names missing from tooltips when deleted (#3960) --- qt/aqt/operations/deck.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt/aqt/operations/deck.py b/qt/aqt/operations/deck.py index 518beafaf..1e19098c0 100644 --- a/qt/aqt/operations/deck.py +++ b/qt/aqt/operations/deck.py @@ -3,6 +3,7 @@ from __future__ import annotations +import html from collections.abc import Sequence from anki.collection import OpChanges, OpChangesWithCount, OpChangesWithId @@ -22,7 +23,7 @@ def remove_decks( lambda out: tooltip( tr.browsing_cards_deleted_with_deckname( count=out.count, - deck_name=deck_name, + deck_name=html.escape(deck_name), ), parent=parent, )