handles apostrophy
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# testing getting images dynamically
|
# testing getting images dynamically
|
||||||
first_call=$(lynx -dump -listonly "https://commons.wikimedia.org/w/index.php?search=${1//_/+}&title=Special:MediaSearch&go=Go&type=image")
|
first_call=$(lynx -dump -listonly "https://commons.wikimedia.org/w/index.php?search=${1//_/+}&title=Special:MediaSearch&go=Go&type=image")
|
||||||
lynx -dump -nonumbers $(lynx -dump \
|
set -x
|
||||||
$(echo "$first_call" \
|
lynx -dump -nonumbers "$(lynx -dump \
|
||||||
|
"$(echo "$first_call" \
|
||||||
| sed '11q;d' \
|
| sed '11q;d' \
|
||||||
| awk '{print $2}' ) \
|
| awk '{print $2}' )" \
|
||||||
| awk -F'. ' '/Cite/ {print $2}' \
|
| awk -F'. ' '/Cite/ {print $3}' \
|
||||||
| xargs echo -n) 2>&1 | grep -A10 'Chicago style' | grep -A10 -e '^$' | grep -B10 'CBE' | grep -B10 -e '^$'
|
| xargs echo -n)" 2>&1 | grep -A10 'Chicago style' | grep -A10 -e '^$' | grep -B10 'CBE' | grep -B10 -e '^$'
|
||||||
|
|||||||
+1
-1
@@ -216,7 +216,7 @@ while($rows=$stats ->fetch_assoc())
|
|||||||
<?php
|
<?php
|
||||||
while($row = $result->fetch_assoc()) {
|
while($row = $result->fetch_assoc()) {
|
||||||
?>
|
?>
|
||||||
<option value='<?php echo $row['Com_Name'];?>'><?php echo $row['Com_Name'];?></option>"
|
<option value="<?php echo $row['Com_Name'];?>"><?php echo $row['Com_Name'];?></option>"
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user