From 6ed85a6de5373d405a8990e4457506aacc665b14 Mon Sep 17 00:00:00 2001 From: paperbenni Date: Tue, 24 Mar 2020 15:32:27 +0100 Subject: [PATCH] escape html markup in notif center --- programs/dunsttrigger | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/dunsttrigger b/programs/dunsttrigger index 6a404c7..21e5f51 100755 --- a/programs/dunsttrigger +++ b/programs/dunsttrigger @@ -7,6 +7,7 @@ if echo "$2" | grep -q 'instantASSIST'; then exit fi +# some apps dont need/already have notification sounds if ! echo "$1" | grep -Eiq '(discord|spotify|thunderbird|mailspring)'; then if ! [ -e ~/instantos/notifications/notification.ogg ]; then if ping -c 1 google.com; then @@ -21,9 +22,8 @@ if ! echo "$1" | grep -Eiq '(discord|spotify|thunderbird|mailspring)'; then fi # escape characters that cause problems with pango -# some apps dont need/already have notification sounds cleanstring() { - echo "$@" | sed 's/&/&/g' + echo "$@" | sed 's/&/&/g' | sed 's/<.*>\(.*\)<\/.*>/\1/g' } # add pango markup -- 2.11.0