)
            .then(() => refreshInbox());
    });

    const list = document.querySelector('.list');

    function refreshInbox() {
        fetch(normalizePath('list'))
            .then((res) => res.json())
            .then((res) => renderList(res));
    }

    const ESCAPE_ENTITIES = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' };
    const escapeChar = char => ESCAPE_ENTITIES[char] || char;
    const escapeHTMLEntities = value => String(value).replace(/[<>"&]/g, escapeChar);

    function re