'); // Append each content to the new document printContents.forEach(container => { printWindow.document.write(container.outerHTML); }); printWindow.document.write('