correct removal of $date var, remove extra html