format html properly