Handle '&' appearing in HTML output from tune titles.
It must be escaped or sed will substitute the pattern being searched for at that point in the result.
This commit is contained in:
parent
fe70fde017
commit
8a94281be0
|
@ -59,10 +59,10 @@ find $bookedir -name "*.abc" | sort |
|
||||||
# Generate the tune web page.
|
# Generate the tune web page.
|
||||||
tunepage=${name}.html
|
tunepage=${name}.html
|
||||||
|
|
||||||
sed -e "s/@TITLE@/${title}/" \
|
sed -e "s/@TITLE@/${title//&/\&}/" \
|
||||||
-e "s/@TUNE@/${name}/" dottes.html.tune > $webdir/$tunepage
|
-e "s/@TUNE@/${name}/" dottes.html.tune > $webdir/$tunepage
|
||||||
|
|
||||||
sed -e "s/@TITLE@/${title}/" \
|
sed -e "s/@TITLE@/${title//&/\&}/" \
|
||||||
-e "s/@TUNE@/${name}/" dottes.html.tuneindex >> $webdir/$output
|
-e "s/@TUNE@/${name}/" dottes.html.tuneindex >> $webdir/$output
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue