Skip to content

Commit

Permalink
Cleans special chars when rendering store text
Browse files Browse the repository at this point in the history
  • Loading branch information
hufman committed Oct 28, 2021
1 parent a1af8dd commit a03c21f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playstore/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ cd "$(dirname "$(realpath "$0")")"

function lang_line {
name="$1"
grep -F '<string name="'"$name"'">' "$lang_dir"/strings.xml | sed -e 's/\s*<[^>]*>\s*//g' | head -n 1
grep -F '<string name="'"$name"'">' "$lang_dir"/strings.xml | sed -e 's/\s*<[^>]*>\s*//g' | head -n 1 |
sed -e 's/\\"/"/g' -e 's/&amp;/\&/g'
}

for lang_dir in res/values*; do
Expand Down

0 comments on commit a03c21f

Please sign in to comment.