Text to HTMLText to HTML
Your Content (Plain Text)
`;
const blob = new Blob([htmlContent], { type: 'text/html' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = 'generated_content.html';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(url);
});// Initial conversion on page load
plainTextInput.dispatchEvent(new Event('input'));