simplified recoding of entities for notify-send
[mirrors/libpurple-core-answerscripts.git] / purple / answerscripts.d / 00-notify.sh
index 7e6f8db5bd586ebcac4ab7d2ad9992f2279878f4..dc7033d7b8bf628757fe5ae646118209a8e0308e 100755 (executable)
@@ -1,3 +1,4 @@
 #!/bin/sh
 #Show notification for each incomming message
-notify-send -i pidgin "$ANSW_PROTOCOL:$ANSW_R_NAME" "$(echo "$ANSW_MSG" | sed -e 's/&/&/g')"
+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.13149 seconds and 4 git commands to generate.