simplified recoding of entities for notify-send
authorTomas Mudrunka <tomas@mudrunka.cz>
Sun, 22 Feb 2015 17:05:58 +0000 (18:05 +0100)
committerTomas Mudrunka <tomas@mudrunka.cz>
Sun, 22 Feb 2015 17:05:58 +0000 (18:05 +0100)
purple/answerscripts.d/00-notify.sh

index 504959f..dc7033d 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh
 #Show notification for each incomming message
-which recode >/dev/null && ANSW_MSG="$(echo "$ANSW_MSG" | recode ..html)"
+ANSW_MSG="$(echo "$ANSW_MSG" | sed -e 's/&/&amp\;/g;s/</\&lt\;/g;s/>/\&gt;/g')"
 notify-send -i pidgin "$ANSW_PROTOCOL:$ANSW_R_NAME" "$ANSW_MSG"
This page took 0.120563 seconds and 4 git commands to generate.