(/>/g, "&gt;")
        .replace(/"/g, "&quot;")
        .replace(/'/g, "&#039;") || 'N/A';
}

document.querySelector('#pdfForm').addEventListener('submit', async (e) => {
    e.preventDefault();
    const fileInput = document.getElementById('fileInput-input');
    const certInput = document.getElementById('certFile-input');
    if (!fileInput.files.length) {
        alert(escapeHtml(translations.selectPDF));
        return;
    }

    const results = [];
    for (const file of fileInput.files) {
        con