fixing html for processing