          <td>Subject:</td>
                <td>${email.subject}</td>
            </tr>
            <tr>
                <td>Date:</td>
                <td>${new Date().toLocaleString()}</td>
            </tr>
        </table>
    </div>
    <iframe srcdoc="${email.body.replace(/"/g, '&quot;')}"></iframe>
`;

        document.querySelector('.detail').innerHTML = content;
    }
</script>
</body>
</html>
