Parses HTM files in a given folder into a specified format in a text file using HTMLParser