We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0349f73 commit 79943a2Copy full SHA for 79943a2
t/test-lib.sh
@@ -894,10 +894,10 @@ xml_attr_encode () {
894
printf '%s\n' "$@" |
895
sed -e 's/&/\&/g' -e "s/'/\'/g" -e 's/"/\"/g' \
896
-e 's/</\</g' -e 's/>/\>/g' \
897
- -e "s/$(printf \\x1c)/\\c;/g" \
898
- -e "s/$(printf \\x1d)/\\d;/g" \
899
- -e "s/$(printf \\x1e)/\\d;/g" \
900
- -e "s/$(printf \\x1f)/\\f;/g" \
+ -e "s/$(printf \\x1c)/\\/g" \
+ -e "s/$(printf \\x1d)/\\/g" \
+ -e "s/$(printf \\x1e)/\\/g" \
+ -e "s/$(printf \\x1f)/\\/g" \
901
-e 's/ /\	/g' -e 's/$/\
/' -e '$s/
$//' |
902
tr -d '\012\015'
903
}
0 commit comments