write in html instead of .txt