Added cleanup function for pre tags.