Fix unescaped deck names missing from tooltips when deleted (#3960)

This commit is contained in:
llama 2025-04-29 07:18:56 +08:00 committed by GitHub
parent 0d4a50741f
commit a59fe2a051

View file

@ -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,
)