Escape text in custom module

pull/1687/head
Spyros Seimenis 2022-09-16 01:19:44 +03:00 committed by Spyros Seimenis
parent 710f89599e
commit 9e03bb61c7
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ auto waybar::modules::Custom::update() -> void {
} else {
parseOutputRaw();
}
auto str = fmt::format(format_, text_, fmt::arg("alt", alt_),
auto str = fmt::format(format_, Glib::Markup::escape_text(text_).raw(), fmt::arg("alt", alt_),
fmt::arg("icon", getIcon(percentage_, alt_)),
fmt::arg("percentage", percentage_));
if (str.empty()) {