You can iterate over each file in the directory and use a command-line browser such as lynx or w3m to render the HTML to plaintext and save this into a text file.
Lynx example:
lynx -dump in.html > out.txt
w3m example:
w3m -dump in.html > out.txt