diff --git a/scripts/species_tools.php b/scripts/species_tools.php index 876db43..2c56616 100644 --- a/scripts/species_tools.php +++ b/scripts/species_tools.php @@ -201,8 +201,8 @@ $result = $db->query($sql); fetchArray(SQLITE3_ASSOC)) { - $common = htmlspecialchars($row['Com_Name'], ENT_QUOTES); - $scient = htmlspecialchars($row['Sci_Name'], ENT_QUOTES); + $common = $row['Com_Name']; + $scient = $row['Sci_Name']; $count = (int)$row['Count']; $max_confidence = round((float)$row['MaxConfidence'] * 100, 1); $identifier = $row['Sci_Name'].'_'.$row['Com_Name']; @@ -210,7 +210,6 @@ $result = $db->query($sql); $lastSeen = $row['LastSeen'] ?? ''; $lastSeenSort = $lastSeen ? (strtotime($lastSeen) ?: 0) : 0; - $lastSeenDisplay = htmlspecialchars($lastSeen, ENT_QUOTES); $common_link = "{$common}"; @@ -240,8 +239,7 @@ $result = $db->query($sql); $info_url = get_info_url($sciname_raw); if (!empty($info_url)) { $url = $info_url['URL'] ?? $info_url; - $url_esc = htmlspecialchars($url, ENT_QUOTES); - $scient_link = "{$scient}"; + $scient_link = "{$scient}"; } else { $scient_link = "{$scient}"; } @@ -252,7 +250,7 @@ $result = $db->query($sql); . "{$chart_cell}" . "{$count}" . "{$max_confidence}%" - . "{$lastSeenDisplay}" + . "{$lastSeen}" . "0.0000" . "".$confirm_cell."" . "".$excl_cell.""