I tried
PHP Code:
$clean = substr_replace($key ,"",-4);
echo( $key . " - " . date("F d Y .", $value). " <img src=./content/uploaded/" . $clean . "</a>");
but it just took 4 characters off of the filename and still adds %3C/a to the end making the image sourch wrong.