JS leia o arquivo HTML
element.setAttribute('href', `data:` + filetype + `;charset=utf-8,` + encodeURIComponent(textInput));
Alexandre Lemetteil
element.setAttribute('href', `data:` + filetype + `;charset=utf-8,` + encodeURIComponent(textInput));
element.setAttribute('href', `data:` + filetype + `;charset=utf-8,` + encodeURIComponent(textInput));
element.setAttribute('href', `data:` + filetype + `;charset=utf-8,` + encodeURIComponent(textInput));
element.setAttribute('href', `data:` + filetype + `;charset=utf-8,` + encodeURIComponent(textInput));
element.setAttribute('href', `data:` + filetype + `;charset=utf-8,` + encodeURIComponent(textInput));
element.setAttribute('href', `data:` + filetype + `;charset=utf-8,` + encodeURIComponent(textInput));