diff --git a/app/Support/PdfHtmlSanitizer.php b/app/Support/PdfHtmlSanitizer.php index 95d16558..464eaa3b 100644 --- a/app/Support/PdfHtmlSanitizer.php +++ b/app/Support/PdfHtmlSanitizer.php @@ -19,6 +19,9 @@ final class PdfHtmlSanitizer return ''; } + // Legacy/invalid `
` is dropped by libxml and collapses lines in PDF output; normalize to `
`. + $html = str_replace('
', '
', $html); + $allowedTags = '