fix(mode): escape text

This commit is contained in:
Alex 2019-05-20 20:51:19 +02:00
parent 4accdd4524
commit 12a251c3a4
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ void Mode::onEvent(const struct Ipc::ipc_response& res) {
try {
auto payload = parser_.parse(res.payload);
if (payload["change"] != "default") {
mode_ = payload["change"].asString();
mode_ = Glib::Markup::escape_text(payload["change"].asString());
} else {
mode_.clear();
}