html-escape removed deck name for tooltip

This commit is contained in:
llama 2025-04-28 12:25:42 +08:00
parent 6ff023f6a1
commit db79e71e27
No known key found for this signature in database
GPG key ID: 1C0AA30B36B4F5F0

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