Adjusted placement of htmlspecialchars.
Last minute enhanacement.