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));