change to HTML file format and edit contents to make it HTML compatible