textutil -stdout -convert html screed.txt | tidy -output screed_tidy.html screed.html
but that didn't work for me, so I modified it:
textutil -convert html file-in.txt -stdout | tidy -output file-out-tidy.html
ps. great article