replace html file with txt file