Escape HTML special characters
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
72372dbffc
commit
b23edce0d1
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ set -euo pipefail
|
|||
exit
|
||||
}
|
||||
|
||||
title=$(mpc | head -n1 | tr -cd "[:print:]")
|
||||
title=$(mpc | head -n1 | tr -cd "[:print:]" | sed 's/&/\&/g; s/</\</g; s/>/\>/g')
|
||||
state=$(mpc | grep '^\[' | sed -E 's/^\[(.+)\].*/\1/')
|
||||
|
||||
case ${state} in
|
||||
|
|
Loading…
Reference in a new issue