For developers, you can use the Blob API to generate and trigger a text file download directly from the browser without a server.
What is a TXT file and how to create a TXT file | Adobe Acrobat Download ЩѓЩ€ШЇ html (1) txt
You can easily convert or save any HTML code as a text file using basic software already on your computer: For developers, you can use the Blob API