cleanup html formatting