diff --git a/blueman/plugins/applet/PulseAudioProfile.py b/blueman/plugins/applet/PulseAudioProfile.py index 16f19a2b8..c2c0d25c3 100644 --- a/blueman/plugins/applet/PulseAudioProfile.py +++ b/blueman/plugins/applet/PulseAudioProfile.py @@ -1,5 +1,6 @@ import logging from gettext import gettext as _ +from html import escape from typing import TYPE_CHECKING, Any, Dict, List, Mapping, Callable from blueman.main.PulseAudioUtils import EventType, PulseAudioUtils @@ -62,7 +63,7 @@ def _generate_profiles_menu(info: "CardInfo") -> List["SubmenuItemDict"]: if not info: return items for profile in info["profiles"]: - profile_name = profile["description"] + profile_name = escape(profile["description"]) profile_icon = "bluetooth-symbolic" if profile["name"] == info["active_profile"]: profile_name = f"{profile_name}"